clear cts on finish

This commit is contained in:
Matt Parker
2025-08-03 01:00:21 +10:00
parent 60da8e810a
commit b413f72be3
2 changed files with 2 additions and 1 deletions

View File

@@ -1,3 +1,3 @@
@echo on
dotnet publish ./src/PhotinoBlazor.Template/PhotinoBlazor.Template.csproj -c Release
dotnet publish ./src/SharpIDE.Photino/SharpIDE.Photino.csproj -c Release
pause

View File

@@ -104,6 +104,7 @@
if (AppState.IdeSettings.OpenTerminalOnBuildRebuildRestore) _terminalDrawerOpen = true;
_cancellationTokenSource = new CancellationTokenSource();
await BuildService.MsBuildSolutionAsync(_solutionFilePath!, buildType, _cancellationTokenSource.Token);
_cancellationTokenSource = null;
}
private async Task CancelBuild() => await _cancellationTokenSource!.CancelAsync();