clean build artifacts

This commit is contained in:
Matthew Parker [SSW]
2023-11-15 22:16:57 +10:00
parent b9b2d2c4ec
commit 0907901ca0
3 changed files with 45 additions and 1 deletions

View File

@@ -135,6 +135,24 @@ public partial class MainWindowViewModel : ViewModelBase
ParityResults?.Add(e.Message);
}
}
[RelayCommand]
private async Task DeleteBinAndObjFoldersInFolder(CancellationToken token)
{
ErrorMessages?.Clear();
ParityResults.Clear();
ResultsLabel = string.Empty;
try
{
CleanFolder.DeleteFolderWithOnlyBinAndObjSubFolders(SolutionFolderPath);
ResultsLabel = "Successfully deleted bin and obj folders";
}
catch (Exception e)
{
ResultsLabel = "Failed to delete bin and obj folders";
ParityResults?.Add(e.Message);
}
}
[RelayCommand]
private async Task LoadSolutionFile(CancellationToken token)