Skip to content

Commit

Permalink
[Windows] Add Windows10SDK.17763 to Win22 (#4980)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolai-frolov authored Feb 7, 2022
1 parent f747f09 commit f160c49
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
8 changes: 8 additions & 0 deletions images/win/scripts/Installers/Install-VS.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,12 @@ if (Test-IsWin19) {
Install-Binary -Url $sdkUrl -Name $sdkFileName -ArgumentList $argumentList
}

if (Test-IsWin22) {
# Install Windows 10 SDK version 10.0.17763
$sdkUrl = "https://go.microsoft.com/fwlink/p/?LinkID=2033908"
$sdkFileName = "sdksetup17763.exe"
$argumentList = ("/q", "/norestart", "/ceip off", "/features OptionId.UWPManaged OptionId.UWPCPP OptionId.UWPLocalized OptionId.DesktopCPPx86 OptionId.DesktopCPPx64 OptionId.DesktopCPParm64")
Install-Binary -Url $sdkUrl -Name $sdkFileName -ArgumentList $argumentList
}

Invoke-PesterTests -TestFile "VisualStudio"
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,12 @@ $markdown += New-MDHeader "Microsoft Visual C++:" -Level 4
$markdown += Get-VisualCPPComponents | New-MDTable
$markdown += New-MDNewLine

$markdown += New-MDHeader "Installed Windows SDKs" -Level 4
$sdk = Get-WindowsSDKs
$markdown += "``Location $($sdk.Path)``"
$markdown += New-MDNewLine
$markdown += New-MDList -Lines $sdk.Versions -Style Unordered

$markdown += New-MDHeader ".NET Core SDK" -Level 3
$sdk = Get-DotnetSdks
$markdown += "``Location $($sdk.Path)``"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,12 @@ function Get-VisualStudioExtensions {
$extensions | Foreach-Object {
[PSCustomObject]$_
} | Select-Object Package, Version | Sort-Object Package
}

function Get-WindowsSDKs {
$path = "${env:ProgramFiles(x86)}\Windows Kits\10\Extension SDKs\WindowsDesktop"
return [PSCustomObject]@{
Path = $path
Versions = $(Get-ChildItem $path).Name
}
}
6 changes: 6 additions & 0 deletions images/win/scripts/Tests/VisualStudio.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,10 @@ Describe "Visual Studio" {
$installedComponents | Should -Contain $ComponentName
}
}
}

Describe "Windows 10 SDK" {
It "Verifies 17763 SDK is installed" -Skip:((Test-IsWin16) -or (Test-IsWin19)) {
"${env:ProgramFiles(x86)}\Windows Kits\10\DesignTime\CommonConfiguration\Neutral\UAP\10.0.17763.0\UAP.props" | Should -Exist
}
}

0 comments on commit f160c49

Please # to comment.