Skip to content

Commit 6138ef7

Browse files
committed
Update common config
1 parent 7285bb5 commit 6138ef7

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.configuration/devcenter/workloads/common-config.dsc.yaml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2
22
#
3-
# Common Configuration Sample for .NET Engineers
3+
# Common Configuration Sample for .NET Engineers
44
# =================================
55
#
66
# Purpose:
@@ -19,13 +19,30 @@
1919
properties:
2020
configurationVersion: "0.2.0"
2121
resources:
22+
- resource: PSDscResources/Script
23+
id: Winget-Upgrade-Packages
24+
directives:
25+
description: Upgrade all Microsoft Store apps using winget
26+
securityContext: elevated # Requires admin rights to install apps
27+
settings:
28+
SetScript: |
29+
$scriptPath = "https://raw.githubusercontent.com/Evilazaro/DevExp-DevBox/refs/heads/main/.configuration/devcenter/workloads/winget-update.ps1"
30+
if (Test-Path $scriptPath) {
31+
Write-Verbose "Running setup script: $scriptPath" -Verbose
32+
& $scriptPath
33+
} else {
34+
Write-Error "Setup script not found: $scriptPath"
35+
}
36+
GetScript: return $false
37+
TestScript: return $false
38+
2239
#----------------------------------------------
2340
# Storage Configuration
2441
#----------------------------------------------
2542
# Resource: Dev Drive
2643
# Dev Drive provides optimized filesystem performance for development workloads
2744
# with ReFS features like integrity streams and block cloning for Git operations.
28-
#
45+
#
2946
# Key benefits for Azure development:
3047
# - Significantly faster Git operations for large Azure repositories
3148
# - Improved file system performance for build operations
@@ -189,4 +206,4 @@ properties:
189206
allowPrerelease: true
190207
description: Install Visual Studio Code editor
191208
settings:
192-
id: Microsoft.VisualStudioCode
209+
id: Microsoft.VisualStudioCode

0 commit comments

Comments
 (0)