config: Use Microsoft.Windows.Settings module for enabling developer mode (#18886)

Using the Microsoft.Windows.Settings module is the now the recommended
way of configuring Windows Settings, including developer mode.
This commit is contained in:
Muhammad Danish 2025-05-10 04:13:18 +05:00 committed by GitHub
parent 976a54d87c
commit 95d021ac87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

@ -2,14 +2,14 @@
# Reference: https://github.com/microsoft/terminal/blob/main/README.md#developer-guidance # Reference: https://github.com/microsoft/terminal/blob/main/README.md#developer-guidance
properties: properties:
resources: resources:
- resource: Microsoft.Windows.Developer/DeveloperMode - resource: Microsoft.Windows.Settings/WindowsSettings
directives: directives:
description: Enable Developer Mode description: Enable Developer Mode
allowPrerelease: true allowPrerelease: true
# Requires elevation for the set operation # Requires elevation for the set operation
securityContext: elevated securityContext: elevated
settings: settings:
Ensure: Present DeveloperMode: true
- resource: Microsoft.WinGet.DSC/WinGetPackage - resource: Microsoft.WinGet.DSC/WinGetPackage
id: powershell id: powershell
directives: directives:

View File

@ -2,14 +2,14 @@
# Reference: https://github.com/microsoft/terminal/blob/main/README.md#developer-guidance # Reference: https://github.com/microsoft/terminal/blob/main/README.md#developer-guidance
properties: properties:
resources: resources:
- resource: Microsoft.Windows.Developer/DeveloperMode - resource: Microsoft.Windows.Settings/WindowsSettings
directives: directives:
description: Enable Developer Mode description: Enable Developer Mode
allowPrerelease: true allowPrerelease: true
# Requires elevation for the set operation # Requires elevation for the set operation
securityContext: elevated securityContext: elevated
settings: settings:
Ensure: Present DeveloperMode: true
- resource: Microsoft.WinGet.DSC/WinGetPackage - resource: Microsoft.WinGet.DSC/WinGetPackage
id: powershell id: powershell
directives: directives:

View File

@ -2,14 +2,14 @@
# Reference: https://github.com/microsoft/terminal/blob/main/README.md#developer-guidance # Reference: https://github.com/microsoft/terminal/blob/main/README.md#developer-guidance
properties: properties:
resources: resources:
- resource: Microsoft.Windows.Developer/DeveloperMode - resource: Microsoft.Windows.Settings/WindowsSettings
directives: directives:
description: Enable Developer Mode description: Enable Developer Mode
allowPrerelease: true allowPrerelease: true
# Requires elevation for the set operation # Requires elevation for the set operation
securityContext: elevated securityContext: elevated
settings: settings:
Ensure: Present DeveloperMode: true
- resource: Microsoft.WinGet.DSC/WinGetPackage - resource: Microsoft.WinGet.DSC/WinGetPackage
id: powershell id: powershell
directives: directives: