[Windows] Add WDK on Windows Server 2022 without VSIX (#5838)

* Add WDK on Windows Server 2022 without VSIX

* Fix extension names
This commit is contained in:
Aleksandr Chebotov
2022-06-29 15:46:22 +02:00
committed by GitHub
parent 45da727c67
commit 02d4539cae
5 changed files with 49 additions and 27 deletions

View File

@@ -54,9 +54,9 @@ function Get-VisualStudioExtensions {
# SDK
if (Test-IsWin19) {
$sdkPackageVersion = Get-SDKVersion
$sdkVersion = Get-SDKVersion
$sdkPackages = @(
@{Package = 'Windows Software Development Kit Extension'; Version = $sdkPackageVersion}
@{Package = 'Windows Software Development Kit'; Version = $sdkVersion}
)
}
@@ -68,14 +68,21 @@ function Get-VisualStudioExtensions {
)
# WDK
$wdkPackageVersion = Get-VSExtensionVersion -packageName 'Microsoft.Windows.DriverKit'
$wdkExtensionVersion = Get-WDKVersion
$wdkVersion = Get-WDKVersion
$wdkExtensionVersion = Get-VSExtensionVersion -packageName 'Microsoft.Windows.DriverKit'
$wdkPackages = @(
@{Package = 'Windows Driver Kit'; Version = $wdkPackageVersion}
@{Package = 'Windows Driver Kit'; Version = $wdkVersion}
@{Package = 'Windows Driver Kit Visual Studio Extension'; Version = $wdkExtensionVersion}
)
}
if (Test-IsWin22) {
# WDK
$wdkVersion = Get-WDKVersion
$wdkPackages = @(
@{Package = 'Windows Driver Kit'; Version = $wdkVersion}
)
}
$extensions = @(
$vsixs