Skip to content

Commit e3c6a9a

Browse files
mdanish-khlszomoru
authored andcommitted
Update WinGet configuration file location & extension (#242241)
* Update WinGet configuration file location & extension * Remove prerelease: true & add securityContext
1 parent 55a2708 commit e3c6a9a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.configurations/configuration.dsc.yaml renamed to .config/configuration.winget

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,33 @@ properties:
55
- resource: Microsoft.WinGet.DSC/WinGetPackage
66
directives:
77
description: Install Git
8-
allowPrerelease: true
8+
# Requires elevation for the set operation (i.e., for installing the package)
9+
securityContext: elevated
910
settings:
1011
id: Git.Git
1112
source: winget
1213
- resource: Microsoft.WinGet.DSC/WinGetPackage
1314
id: npm
1415
directives:
1516
description: Install NodeJS version 20
16-
allowPrerelease: true
17+
# Requires elevation for the set operation (i.e., for installing the package)
18+
securityContext: elevated
1719
settings:
1820
id: OpenJS.NodeJS.LTS
1921
version: "20.14.0"
2022
source: winget
2123
- resource: Microsoft.WinGet.DSC/WinGetPackage
2224
directives:
2325
description: Install Python 3.10
24-
allowPrerelease: true
2526
settings:
2627
id: Python.Python.3.10
2728
source: winget
2829
- resource: Microsoft.WinGet.DSC/WinGetPackage
2930
id: vsPackage
3031
directives:
3132
description: Install Visual Studio 2022 (any edition is OK)
32-
allowPrerelease: true
33+
# Requires elevation for the set operation (i.e., for installing the package)
34+
securityContext: elevated
3335
settings:
3436
id: Microsoft.VisualStudio.2022.BuildTools
3537
source: winget
@@ -38,6 +40,8 @@ properties:
3840
- vsPackage
3941
directives:
4042
description: Install required VS workloads
43+
# Requires elevation for the get and set operations
44+
securityContext: elevated
4145
allowPrerelease: true
4246
settings:
4347
productId: Microsoft.VisualStudio.Product.BuildTools

0 commit comments

Comments
 (0)