fix error

This commit is contained in:
Zhaopeng Wang (from Dev Box)
2025-05-26 21:52:09 +08:00
parent 72b424fb4e
commit 1cb805c850
2 changed files with 1 additions and 9 deletions

View File

@@ -22,9 +22,6 @@ steps:
}
$NEW_DOTNET_ROOT = "$(Agent.ToolsDirectory)\dotnet"
& ./dotnet-install.ps1 -Channel "${{parameters.version}}" -InstallDir $NEW_DOTNET_ROOT
& ./dotnet-install.ps1 -Channel "${{parameters.version}}" -InstallDir $NEW_DOTNET_ROOT -Runtime "windowsdesktop"
& ./dotnet-install.ps1 -Channel "${{parameters.version}}"
& ./dotnet-install.ps1 -Channel "${{parameters.version}}" -Runtime "windowsdesktop"
Write-Host "##vso[task.setvariable variable=DOTNET_ROOT]${NEW_DOTNET_ROOT}"
Write-Host "##vso[task.prependpath]${NEW_DOTNET_ROOT}"
Remove-Item dotnet-install.ps1 -ErrorAction:Ignore

View File

@@ -484,12 +484,7 @@ namespace Microsoft.PowerToys.UITest
};
foreach (var processName in processNamesToClose)
{
var processes = Process.GetProcessesByName(processName);
foreach (var process in processes)
{
process.Kill();
process.WaitForExit();
}
Session.KillAllProcessesByName(processName);
}
}