Add implicit usings analyzer and csproj formatter

This commit is contained in:
Matthew Parker [SSW]
2023-08-30 18:59:41 +10:00
parent c343612873
commit 526ff1b43d
8 changed files with 226 additions and 0 deletions

View File

@@ -43,6 +43,12 @@ public partial class MainWindowViewModel : ViewModelBase
ParityResults.Add(result);
}
}
[RelayCommand]
private async Task FormatCsProjFile(CancellationToken token)
{
FormatCsproj.FormatCsprojFile(SolutionFilePath);
}
[RelayCommand]
private async Task LoadSolutionFile(CancellationToken token)

View File

@@ -19,6 +19,7 @@
<Button Command="{Binding LoadSolutionFolderCommand}" >Select Solution Folder</Button>
<Button Command="{Binding LoadSolutionFileCommand}">Select Solution File</Button>
<Button Command="{Binding ExecuteParityCheckerCommand}">Check Solution Parity</Button>
<Button Command="{Binding FormatCsProjFileCommand}">Format CSharp Project File</Button>
<TextBlock Name="SolutionFilePath" Text="{Binding SolutionFilePath}" />
<TextBlock Name="SolutionFolderPath" Text="{Binding SolutionFolderPath}" />
<ListBox Name="Results" ItemsSource="{Binding ParityResults}"/>