Runs builds in pwsh process for reliable cancel

Improves UI responsiveness and interactive behavior by running build/cleanup in a separate PowerShell process instead of background jobs.

Fixes cancellation reliability by terminating the full process tree (including child tools) and using process exit codes for success/failure reporting.

Reduces noisy output by suppressing type-add return values and standardizes cleanup argument passing to avoid switch/boolean binding issues.
This commit is contained in:
rbalsleyMSFT
2026-01-29 22:21:15 -08:00
parent b2a7ef5f41
commit 1feed40962
2 changed files with 158 additions and 148 deletions
+1 -1
View File
@@ -584,7 +584,7 @@ public static extern uint GetPrivateProfileSection(
uint nSize,
string lpFileName);
'@
Add-Type -MemberDefinition $definition -Namespace Win32 -Name Kernel32 -PassThru
Add-Type -MemberDefinition $definition -Namespace Win32 -Name Kernel32 -PassThru | Out-Null
#Check if Hyper-V feature is installed (requires only checks the module)
$osInfo = Get-CimInstance -ClassName win32_OperatingSystem