[windows-2025] Add CDB (#13559)

This commit is contained in:
v-AndriiKhyliuk
2026-01-30 13:06:39 +01:00
committed by GitHub
parent 1e180d61ea
commit aad50d1475
@@ -41,4 +41,18 @@ Install-Binary -Type EXE `
-InstallArgs @("/q", "/norestart", "/ceip off", "/features OptionId.UWPManaged OptionId.UWPCPP OptionId.UWPLocalized OptionId.DesktopCPPx86 OptionId.DesktopCPPx64 OptionId.DesktopCPParm64") `
-ExpectedSubject $(Get-MicrosoftPublisher)
# Enable Windows Desktop Debuggers (cdb.exe) on Windows Server 2025
if (Test-IsWin25) {
$installerEntry = Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* `
| Where-Object { $_.DisplayName -match "Windows Software Development Kit" } `
| Sort-Object DisplayVersion -Descending | Select-Object -First 1
if ($installerEntry -and $installerEntry.BundleCachePath) {
Install-Binary -Type EXE `
-LocalPath $installerEntry.BundleCachePath `
-InstallArgs @("/features", "OptionId.WindowsDesktopDebuggers", "/q", "/norestart") `
-ExpectedSubject $(Get-MicrosoftPublisher)
}
}
Invoke-PesterTests -TestFile "VisualStudio"