| 1 | # yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2 |
| 2 | # Reference: https://github.com/microsoft/WSL/blob/master/doc/docs/dev-loop.md |
| 3 | # |
| 4 | # Usage: winget configure -f .config/configuration.vsEnterprise.winget |
| 5 | # |
| 6 | # Visual Studio 2022 Enterprise edition. For other editions use: |
| 7 | # .config/configuration.winget (Community, default) |
| 8 | # .config/configuration.vsProfessional.winget (Professional) |
| 9 | properties: |
| 10 | resources: |
| 11 | - resource: Microsoft.Windows.Settings/WindowsSettings |
| 12 | directives: |
| 13 | description: Enable Developer Mode (required for symbolic link support) |
| 14 | allowPrerelease: true |
| 15 | securityContext: elevated |
| 16 | settings: |
| 17 | DeveloperMode: true |
| 18 | - resource: Microsoft.WinGet.DSC/WinGetPackage |
| 19 | id: cmake |
| 20 | directives: |
| 21 | description: Install CMake |
| 22 | securityContext: elevated |
| 23 | settings: |
| 24 | id: Kitware.CMake |
| 25 | source: winget |
| 26 | - resource: Microsoft.WinGet.DSC/WinGetPackage |
| 27 | id: vsPackage |
| 28 | directives: |
| 29 | description: Install Visual Studio 2022 Enterprise |
| 30 | securityContext: elevated |
| 31 | settings: |
| 32 | id: Microsoft.VisualStudio.2022.Enterprise |
| 33 | source: winget |
| 34 | - resource: Microsoft.VisualStudio.DSC/VSComponents |
| 35 | dependsOn: |
| 36 | - vsPackage |
| 37 | directives: |
| 38 | description: Install required VS workloads from .vsconfig |
| 39 | allowPrerelease: true |
| 40 | securityContext: elevated |
| 41 | settings: |
| 42 | productId: Microsoft.VisualStudio.Product.Enterprise |
| 43 | channelId: VisualStudio.17.Release |
| 44 | vsConfigFile: '${WinGetConfigRoot}\..\.vsconfig' |
| 45 | configurationVersion: 0.2.0 |