summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Lichtenberg (170957) <[email protected]>2024-05-22 08:58:00 -0700
committerJakob Lichtenberg (170957) <[email protected]>2024-05-22 08:58:00 -0700
commit2e7253481b09ed926490aa1edb37afc70240202b (patch)
tree9376963e2a5be972557b9db0394fce06ca76c6f3
parent6edffd4b66aff103080aa1f3148815a8c9d827a9 (diff)
parent38730054734e5a36e330d317d844084d0def539e (diff)
Merge branch 'main' into develop
-rw-r--r--configuration.dsc.yaml24
1 files changed, 17 insertions, 7 deletions
diff --git a/configuration.dsc.yaml b/configuration.dsc.yaml
index 68af36fa..3bb6b668 100644
--- a/configuration.dsc.yaml
+++ b/configuration.dsc.yaml
@@ -4,19 +4,18 @@ properties:
- resource: Microsoft.WinGet.DSC/WinGetPackage
id: vsPackage
directives:
- description: Install Visual Studio 2022 Community
+ description: Install Visual Studio Community 2022
allowPrerelease: true
settings:
id: Microsoft.VisualStudio.2022.Community
source: winget
- useLatest: true
- resource: Microsoft.VisualStudio.DSC/VSComponents
id: vsComponents
dependsOn:
- vsPackage
directives:
description: Install required VS workloads
- maxVersion: "1.0.21"
+ allowPrerelease: true
settings:
productId: Microsoft.VisualStudio.Product.Community
channelId: VisualStudio.17.Release
@@ -43,18 +42,28 @@ properties:
- Microsoft.VisualStudio.Component.VC.MFC.ARM64
- Microsoft.VisualStudio.Component.VC.MFC.ARM64.Spectre
- Microsoft.VisualStudio.Workload.NativeDesktop
- - Microsoft.VisualStudio.Component.Windows11SDK.22621
+
+ - 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
allowPrerelease: true
settings:
- id: Microsoft.WindowsWDK.10.0.22621
+ id: Microsoft.WindowsWDK.10.0.26100
source: winget
- useLatest: true
- resource: PSDscResources/Script
id: wdkVsix
dependsOn:
@@ -67,7 +76,8 @@ 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.22621.0\WDK.vsix" }
+ $arch = $env:PROCESSOR_ARCHITECTURE
+ if (Test-Path $path) { & $path /q "${env:ProgramFiles(x86)}\Windows Kits\10\Vsix\VS2022\10.0.26100.0\$arch\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 }