Remove XAMLStyler

This commit is contained in:
Tyrrrz 2021-11-08 23:26:04 +02:00
parent 214d5e3bdb
commit 2393a6a472
3 changed files with 2 additions and 19 deletions

View file

@ -1,12 +0,0 @@
{
"version": 1,
"isRoot": true,
"tools": {
"xamlstyler.console": {
"version": "3.2008.4",
"commands": [
"xstyler"
]
}
}
}

View file

@ -53,7 +53,7 @@ namespace DiscordChatExporter.Gui.Behaviors
}
// Propagate selected items from view to model
private void OnListBoxSelectionChanged(object sender, SelectionChangedEventArgs args)
private void OnListBoxSelectionChanged(object? sender, SelectionChangedEventArgs args)
{
if (_viewHandled) return;
if (AssociatedObject.Items.SourceCollection is null) return;
@ -62,7 +62,7 @@ namespace DiscordChatExporter.Gui.Behaviors
}
// Re-select items when the set of items changes
private void OnListBoxItemsChanged(object sender, NotifyCollectionChangedEventArgs args)
private void OnListBoxItemsChanged(object? sender, NotifyCollectionChangedEventArgs args)
{
if (_viewHandled) return;
if (AssociatedObject.Items.SourceCollection is null) return;

View file

@ -33,9 +33,4 @@
<ProjectReference Include="..\DiscordChatExporter.Core\DiscordChatExporter.Core.csproj" />
</ItemGroup>
<Target Name="Format XAML" AfterTargets="BeforeBuild">
<Exec Command="dotnet tool restore" />
<Exec Command="dotnet xstyler -r -d $(MSBuildProjectDirectory)" />
</Target>
</Project>