From 9240ca0fcdfb7f7e44277ad23ec378711efdd4ea Mon Sep 17 00:00:00 2001 From: Muhammad Danish <88161975+mdanish-kh@users.noreply.github.com> Date: Wed, 19 Mar 2025 05:53:14 +0500 Subject: [PATCH] Add securityContext to configuration file --- .config/configuration.winget | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.config/configuration.winget b/.config/configuration.winget index 417c69bc..092cdced 100644 --- a/.config/configuration.winget +++ b/.config/configuration.winget @@ -6,13 +6,16 @@ properties: directives: description: Enable Developer Mode allowPrerelease: true + # Requires elevation for the set operation + securityContext: elevated settings: Ensure: Present - resource: Microsoft.WinGet.DSC/WinGetPackage id: vsPackage directives: description: Install Visual Studio 2022 (any edition is OK) - allowPrerelease: true + # Requires elevation for the set operation + securityContext: elevated settings: id: Microsoft.VisualStudio.2022.Community source: winget @@ -22,6 +25,8 @@ properties: directives: description: Install required VS workloads allowPrerelease: true + # Requires elevation for the get and set operations + securityContext: elevated settings: productId: Microsoft.VisualStudio.Product.Community channelId: VisualStudio.17.Release