Skip to content

Commit dd36cab

Browse files
authored
Add securityContext to configuration file (#592)
1 parent 679b51a commit dd36cab

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.config/configuration.winget

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ properties:
66
directives:
77
description: Enable Developer Mode
88
allowPrerelease: true
9+
# Requires elevation for the set operation
10+
securityContext: elevated
911
settings:
1012
Ensure: Present
1113
- resource: Microsoft.WinGet.DSC/WinGetPackage
1214
id: vsPackage
1315
directives:
1416
description: Install Visual Studio 2022 (any edition is OK)
15-
allowPrerelease: true
17+
# Requires elevation for the set operation
18+
securityContext: elevated
1619
settings:
1720
id: Microsoft.VisualStudio.2022.Community
1821
source: winget
@@ -22,6 +25,8 @@ properties:
2225
directives:
2326
description: Install required VS workloads
2427
allowPrerelease: true
28+
# Requires elevation for the get and set operations
29+
securityContext: elevated
2530
settings:
2631
productId: Microsoft.VisualStudio.Product.Community
2732
channelId: VisualStudio.17.Release

0 commit comments

Comments
 (0)