forked from microsoft/winget-cli
-
Notifications
You must be signed in to change notification settings - Fork 1
/
winget-cli.yml
46 lines (46 loc) · 1.77 KB
/
winget-cli.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
properties:
configurationVersion: 0.1
assertions:
- resource: AssertWindows
id: winVer
directives:
module: Microsoft.Windows.DSC
settings:
versionMinimum: 10.0.17763.0
resources:
- resource: DeveloperMode
id: devMode
directives:
module: Microsoft.Windows.DSC
- resource: WinGetPackage
id: vsPackage
directives:
description: Install Visual Studio 2022 (any edition is OK) # Support for installing any edition should probably come through a VS specific resource
module: Microsoft.WinGet.DSC
settings:
id: Microsoft.VisualStudio.2022.Community
source: winget
- resource: VisualStudioComponents
id: vsComponents
dependsOn:
- vsPackage
directives:
description: Install required VS components
module: Microsoft.VisualStudio.DSC
settings:
productId: Microsoft.VisualStudio.Product.Community # If we were able to support "any edition" above, this would probably need to be referenced like:
channelId: VisualStudio.17.Release # installPath: $($vsPackage.InstalledLocation)
vsconfigFile: .vsconfig
- resource: VisualStudioExtension
id: vsExtensions
dependsOn:
- vsPackage
directives:
description: Install VS extension for MSI
module: Microsoft.VisualStudio.DSC
settings:
productId: Microsoft.VisualStudio.Product.Community # If we were able to support "any edition" above, this would probably need to be referenced like:
channelId: VisualStudio.17.Release # installPath: $($vsPackage.InstalledLocation)
publisher: VisualStudioClient
name: MicrosoftVisualStudio2022InstallerProjects
version: 2.0.0