mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-14 13:56:47 +00:00
[Windows] Add Windows10SDK.17763 to Win22 (#4980)
This commit is contained in:
@@ -44,4 +44,12 @@ if (Test-IsWin19) {
|
|||||||
Install-Binary -Url $sdkUrl -Name $sdkFileName -ArgumentList $argumentList
|
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"
|
Invoke-PesterTests -TestFile "VisualStudio"
|
||||||
|
|||||||
@@ -244,6 +244,12 @@ $markdown += New-MDHeader "Microsoft Visual C++:" -Level 4
|
|||||||
$markdown += Get-VisualCPPComponents | New-MDTable
|
$markdown += Get-VisualCPPComponents | New-MDTable
|
||||||
$markdown += New-MDNewLine
|
$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
|
$markdown += New-MDHeader ".NET Core SDK" -Level 3
|
||||||
$sdk = Get-DotnetSdks
|
$sdk = Get-DotnetSdks
|
||||||
$markdown += "``Location $($sdk.Path)``"
|
$markdown += "``Location $($sdk.Path)``"
|
||||||
|
|||||||
@@ -89,3 +89,11 @@ function Get-VisualStudioExtensions {
|
|||||||
[PSCustomObject]$_
|
[PSCustomObject]$_
|
||||||
} | Select-Object Package, Version | Sort-Object Package
|
} | 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
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -23,3 +23,9 @@ Describe "Visual Studio" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user