Revert "Add WDK on Windows Server 2022 (#5652)" (#5711)

This reverts commit 16f6912f37.
This commit is contained in:
Aleksandr Chebotov
2022-06-08 16:26:18 +02:00
committed by GitHub
parent 76f5a7d73e
commit 5690ae9183
5 changed files with 20 additions and 33 deletions

View File

@@ -4,14 +4,7 @@
################################################################################
# Requires Windows SDK with the same version number as the WDK
if (Test-IsWin22)
{
$winSdkUrl = "https://go.microsoft.com/fwlink/p/?linkid=2196241"
$wdkUrl = "https://go.microsoft.com/fwlink/?linkid=2196230"
$FilePath = "C:\Program Files (x86)\Windows Kits\10\Vsix\VS2022\*\WDK.vsix"
$VSver = "2022"
}
elseif (Test-IsWin19)
if (Test-IsWin19)
{
$winSdkUrl = "https://go.microsoft.com/fwlink/?linkid=2173743"
$wdkUrl = "https://go.microsoft.com/fwlink/?linkid=2166289"
@@ -27,7 +20,7 @@ elseif (Test-IsWin16)
}
else
{
throw "Invalid version of Visual Studio is found. Either 2017,2019 or 2022 are required"
throw "Invalid version of Visual Studio is found. Either 2017 or 2019 are required"
}
$argumentList = ("/features", "+", "/quiet")
@@ -39,7 +32,6 @@ Install-Binary -Url $winSdkUrl -Name "winsdksetup.exe" -ArgumentList $argumentLi
Install-Binary -Url $wdkUrl -Name "wdksetup.exe" -ArgumentList $argumentList
# Need to install the VSIX to get the build targets when running VSBuild
$FilePath = Resolve-Path -Path $FilePath
Install-VsixExtension -FilePath $FilePath -Name "WDK.vsix" -VSversion $VSver -InstallOnly
Invoke-PesterTests -TestFile "WDK"