winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

configuration.winget (1294B)


      1 # yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2
      2 # Reference: https://github.com/microsoft/winget-cli#building-the-client
      3 properties:
      4   resources:
      5     - resource: Microsoft.Windows.Settings/WindowsSettings
      6       directives:
      7         description: Enable Developer Mode
      8         # Requires elevation for the set operation
      9         securityContext: elevated
     10         allowPrerelease: true
     11       settings:
     12         DeveloperMode: true
     13     - resource: Microsoft.WinGet.DSC/WinGetPackage
     14       id: vsPackage
     15       directives:
     16         description: Install Visual Studio 2022 Community
     17         # Requires elevation for the set operation
     18         securityContext: elevated
     19       settings:
     20         id: Microsoft.VisualStudio.2022.Community
     21         source: winget
     22     - resource: Microsoft.VisualStudio.DSC/VSComponents
     23       dependsOn:
     24         - vsPackage
     25       directives:
     26         description: Install required VS workloads from project .vsconfig file
     27         # Requires elevation for the get and set operations
     28         securityContext: elevated
     29         allowPrerelease: true
     30       settings:
     31         productId: Microsoft.VisualStudio.Product.Community
     32         channelId: VisualStudio.17.Release
     33         vsConfigFile: '${WinGetConfigRoot}\..\.vsconfig'
     34   configurationVersion: 0.2.0