Skip to content

Commit

Permalink
[Windows] Update WDK,SDK to latest version on windows 22 image and Az…
Browse files Browse the repository at this point in the history
…Cli signature. (#10945)

* Update WDK and SDK to latest version

* update comment on bisual studio script

* Fix Azcli signature mismatch

* Removed VS Components
  • Loading branch information
kishorekumar-anchala authored Nov 13, 2024
1 parent e96b8f3 commit 9182633
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
5 changes: 5 additions & 0 deletions images/windows/scripts/build/Install-VisualStudio.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ if (Test-IsWin22) {
-Url 'https://go.microsoft.com/fwlink/p/?LinkID=2033908' `
-InstallArgs @("/q", "/norestart", "/ceip off", "/features OptionId.UWPManaged OptionId.UWPCPP OptionId.UWPLocalized OptionId.DesktopCPPx86 OptionId.DesktopCPPx64 OptionId.DesktopCPParm64") `
-ExpectedSignature '7535269B94C1FEA4A5EF6D808E371DA242F27936'
# Install Windows 11 SDK version 10.0.26100
Install-Binary -Type EXE `
-Url 'https://go.microsoft.com/fwlink/?linkid=2286561' `
-InstallArgs @("/q", "/norestart", "/ceip off", "/features OptionId.UWPManaged OptionId.UWPCPP OptionId.UWPLocalized OptionId.DesktopCPPx86 OptionId.DesktopCPPx64 OptionId.DesktopCPParm64") `
-ExpectedSignature '573EF451A68C33FB904346D44551BEF3BB5BBF68'
}

Invoke-PesterTests -TestFile "VisualStudio"
12 changes: 6 additions & 6 deletions images/windows/scripts/build/Install-WDK.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ if (Test-IsWin19) {
$wdkExtensionPath = "C:\Program Files (x86)\Windows Kits\10\Vsix\VS2019\WDK.vsix"
} elseif (Test-IsWin22) {
# SDK is available through Visual Studio
$wdkUrl = "https://go.microsoft.com/fwlink/?linkid=2249371"
$wdkSignatureThumbprint = "7C94971221A799907BB45665663BBFD587BAC9F8"
$wdkExtensionPath = "C:\Program Files (x86)\Windows Kits\10\Vsix\VS2022\*\WDK.vsix"
$wdkUrl = "https://go.microsoft.com/fwlink/?linkid=2294834"
$wdkSignatureThumbprint = "7920AC8FB05E0FFFE21E8FF4B4F03093BA6AC16E"
} else {
throw "Invalid version of Visual Studio is found. Either 2019 or 2022 are required"
}
Expand All @@ -29,7 +28,8 @@ Install-Binary -Type EXE `
-InstallArgs @("/features", "+", "/quiet") `
-ExpectedSignature $wdkSignatureThumbprint

# Need to install the VSIX to get the build targets when running VSBuild
Install-VSIXFromFile (Resolve-Path -Path $wdkExtensionPath)

if (Test-IsWin19){
# Need to install the VSIX to get the build targets when running VSBuild
Install-VSIXFromFile (Resolve-Path -Path $wdkExtensionPath)
}
Invoke-PesterTests -TestFile "WDK"
6 changes: 6 additions & 0 deletions images/windows/scripts/tests/VisualStudio.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,9 @@ Describe "Windows 11 SDK" {
"${env:ProgramFiles(x86)}\Windows Kits\10\DesignTime\CommonConfiguration\Neutral\UAP\10.0.22621.0\UAP.props" | Should -Exist
}
}

Describe "Windows 11 SDK" {
It "Verifies 26100 SDK is installed" -Skip:(Test-IsWin19) {
"${env:ProgramFiles(x86)}\Windows Kits\10\DesignTime\CommonConfiguration\Neutral\UAP\10.0.26100.0\UAP.props" | Should -Exist
}
}
4 changes: 3 additions & 1 deletion images/windows/toolsets/toolset-2022.json
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,9 @@
"Component.MDD.Linux",
"Component.MDD.Linux.GCC.arm",
"Component.Microsoft.Windows.DriverKit",
"wasm.tools"
"wasm.tools",
"Microsoft.Component.MSBuild"

],
"vsix": [
"SSIS.MicrosoftDataToolsIntegrationServices",
Expand Down

0 comments on commit 9182633

Please sign in to comment.