diff options
| author | jacob-ronstadt <[email protected]> | 2024-05-17 15:11:12 -0700 |
|---|---|---|
| committer | jacob-ronstadt <[email protected]> | 2024-05-20 17:27:43 -0700 |
| commit | 82837105b5d805ad986b69226397e871e66db4c9 (patch) | |
| tree | 2761bf383e8505a4950e1d91cedff50f725848ea | |
| parent | 8de2326fdc67978c0fa6e2c579eb76a20fbb419c (diff) | |
Update to use winget for sdk instead of visual studio component. Update path for vsix
| -rw-r--r-- | configuration.dsc.yaml | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/configuration.dsc.yaml b/configuration.dsc.yaml index a4ec5894..4f7b38cd 100644 --- a/configuration.dsc.yaml +++ b/configuration.dsc.yaml @@ -42,10 +42,21 @@ properties: - Microsoft.VisualStudio.Component.VC.MFC.ARM64 - Microsoft.VisualStudio.Component.VC.MFC.ARM64.Spectre - Microsoft.VisualStudio.Workload.NativeDesktop - - Microsoft.VisualStudio.Component.Windows11SDK.26100 + + - resource: Microsoft.WinGet.DSC/WinGetPackage + id: sdkPackage + dependsOn: + - vsComponents + directives: + description: Install Windows SDK + allowPrerelease: true + settings: + id: Microsoft.WindowsSDK.10.0.26100 + source: winget - resource: Microsoft.WinGet.DSC/WinGetPackage id: wdkPackage dependsOn: + - sdkPackage - vsComponents directives: description: Install Windows Driver Kit @@ -65,7 +76,7 @@ properties: return & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -nologo -latest -products Microsoft.VisualStudio.Product.Community -requires Microsoft.Windows.DriverKit -property installationVersion SetScript: | $path = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -nologo -latest -products * -property enginePath | Join-Path -ChildPath 'VSIXInstaller.exe' - if (Test-Path $path) { & $path /q "${env:ProgramFiles(x86)}\Windows Kits\10\Vsix\VS2022\10.0.26100.0\WDK.vsix" } + if (Test-Path $path) { & $path /q "${env:ProgramFiles(x86)}\Windows Kits\10\Vsix\VS2022\10.0.26100.0\amd64\WDK.vsix" } TestScript: | $versionString = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -nologo -latest -products Microsoft.VisualStudio.Product.Community -requires Microsoft.Windows.DriverKit -Property installationVersion if (-not $versionString) { return $false } |
