mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Install WDK.vsix on VS 2022 (#6203)
This commit is contained in:
committed by
GitHub
parent
3414173a17
commit
03c71fa649
@@ -15,7 +15,7 @@ if (Test-IsWin22) {
|
||||
$FilePath = "C:\Program Files (x86)\Windows Kits\10\Vsix\VS2019\WDK.vsix"
|
||||
$VSver = "2019"
|
||||
} 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 2019 or 2022 are required"
|
||||
}
|
||||
|
||||
$argumentList = ("/features", "+", "/quiet")
|
||||
@@ -29,11 +29,7 @@ if (Test-IsWin19) {
|
||||
Install-Binary -Url $wdkUrl -Name "wdksetup.exe" -ArgumentList $argumentList
|
||||
|
||||
# Need to install the VSIX to get the build targets when running VSBuild
|
||||
# Windows 2022 - Skip installation due to a regression
|
||||
# https://docs.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk
|
||||
if (Test-IsWin19) {
|
||||
$FilePath = Resolve-Path -Path $FilePath
|
||||
Install-VsixExtension -FilePath $FilePath -Name "WDK.vsix" -VSversion $VSver -InstallOnly
|
||||
}
|
||||
$FilePath = Resolve-Path -Path $FilePath
|
||||
Install-VsixExtension -FilePath $FilePath -Name "WDK.vsix" -VSversion $VSver -InstallOnly
|
||||
|
||||
Invoke-PesterTests -TestFile "WDK"
|
||||
|
||||
Reference in New Issue
Block a user