Skip to content

Commit f160c49

Browse files
[Windows] Add Windows10SDK.17763 to Win22 (#4980)
1 parent f747f09 commit f160c49

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

images/win/scripts/Installers/Install-VS.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,12 @@ if (Test-IsWin19) {
4444
Install-Binary -Url $sdkUrl -Name $sdkFileName -ArgumentList $argumentList
4545
}
4646

47+
if (Test-IsWin22) {
48+
# Install Windows 10 SDK version 10.0.17763
49+
$sdkUrl = "https://go.microsoft.com/fwlink/p/?LinkID=2033908"
50+
$sdkFileName = "sdksetup17763.exe"
51+
$argumentList = ("/q", "/norestart", "/ceip off", "/features OptionId.UWPManaged OptionId.UWPCPP OptionId.UWPLocalized OptionId.DesktopCPPx86 OptionId.DesktopCPPx64 OptionId.DesktopCPParm64")
52+
Install-Binary -Url $sdkUrl -Name $sdkFileName -ArgumentList $argumentList
53+
}
54+
4755
Invoke-PesterTests -TestFile "VisualStudio"

images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,12 @@ $markdown += New-MDHeader "Microsoft Visual C++:" -Level 4
244244
$markdown += Get-VisualCPPComponents | New-MDTable
245245
$markdown += New-MDNewLine
246246

247+
$markdown += New-MDHeader "Installed Windows SDKs" -Level 4
248+
$sdk = Get-WindowsSDKs
249+
$markdown += "``Location $($sdk.Path)``"
250+
$markdown += New-MDNewLine
251+
$markdown += New-MDList -Lines $sdk.Versions -Style Unordered
252+
247253
$markdown += New-MDHeader ".NET Core SDK" -Level 3
248254
$sdk = Get-DotnetSdks
249255
$markdown += "``Location $($sdk.Path)``"

images/win/scripts/SoftwareReport/SoftwareReport.VisualStudio.psm1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,12 @@ function Get-VisualStudioExtensions {
8888
$extensions | Foreach-Object {
8989
[PSCustomObject]$_
9090
} | Select-Object Package, Version | Sort-Object Package
91+
}
92+
93+
function Get-WindowsSDKs {
94+
$path = "${env:ProgramFiles(x86)}\Windows Kits\10\Extension SDKs\WindowsDesktop"
95+
return [PSCustomObject]@{
96+
Path = $path
97+
Versions = $(Get-ChildItem $path).Name
98+
}
9199
}

images/win/scripts/Tests/VisualStudio.Tests.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,10 @@ Describe "Visual Studio" {
2222
$installedComponents | Should -Contain $ComponentName
2323
}
2424
}
25+
}
26+
27+
Describe "Windows 10 SDK" {
28+
It "Verifies 17763 SDK is installed" -Skip:((Test-IsWin16) -or (Test-IsWin19)) {
29+
"${env:ProgramFiles(x86)}\Windows Kits\10\DesignTime\CommonConfiguration\Neutral\UAP\10.0.17763.0\UAP.props" | Should -Exist
30+
}
2531
}

0 commit comments

Comments
 (0)