Skip to content

Instantly share code, notes, and snippets.

@ryfu-msft
Created April 11, 2023 20:42
Show Gist options
  • Save ryfu-msft/1bc9d06fc08d70083671785d53d3376e to your computer and use it in GitHub Desktop.
Save ryfu-msft/1bc9d06fc08d70083671785d53d3376e to your computer and use it in GitHub Desktop.
winget-cli build configuration
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.1
# Reference: https://github.com/microsoft/winget-cli-restsource#building-the-client
properties:
resources:
- resource: DeveloperMode
directives:
description: Enable Developer Mode
module: Microsoft.Windows.DSC
settings:
Ensure: Present
- resource: WinGetPackage
id: vsPackage
directives:
description: Install Visual Studio 2022 (any edition is OK)
module: Microsoft.WinGet.DSC
settings:
id: Microsoft.VisualStudio.2022.Community
source: winget
- resource: InstallVSConfig
dependsOn:
- vsPackage
directives:
description: Install required VS workloads from project .vsconfig file
module: Microsoft.VisualStudio.DSC
settings:
productId: Microsoft.VisualStudio.Product.Community
channelId: VisualStudio.17.Release
vsconfigFile: .\.vsconfig
configurationVersion: 0.1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment