Specification: Native DSC v3 Resources in WinGet Client#6291
Draft
denelon wants to merge 1 commit into
Draft
Conversation
Specification for native command-based DSC v3 resources shipped with the WinGet client, including Package, PackageList, Source, Settings, and Pin resources. Eliminates ~92s adapter overhead per resource. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Trenly
reviewed
Jun 17, 2026
| | Resource Type | Purpose | DSC Operations | | ||
| |--------------|---------|----------------| | ||
| | `Microsoft.WinGet/Package` | Single package desired state | Get, Set, Test | | ||
| | `Microsoft.WinGet/PackageList` | Declarative list of packages | Get, Set, Test | |
Contributor
There was a problem hiding this comment.
Feels like this could just be an extension of Microsoft.WinGet/Package where the parameters could be lists instead of single values, or settings is itself a list type?
| | `ensure` | enum | No | `present` \| `absent` | | ||
| | `trustLevel` | enum | No | `none` \| `trusted` | | ||
|
|
||
| ### Microsoft.WinGet/Settings |
Contributor
There was a problem hiding this comment.
How do admin settings get set?
| winget dsc list # List available resources | ||
| ``` | ||
|
|
||
| The `winget dsc` subcommand is NOT intended for direct user interaction — it implements the DSC v3 protocol for the runtime to invoke. It does not appear in `winget --help` by default (hidden command, visible with `--verbose`). |
Contributor
There was a problem hiding this comment.
winget dsc is currently an alias for winget configure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📖 Description
Specification for native DSC v3 command-based resources shipped with the WinGet client. Includes Package, PackageList, Source, Settings, and Pin resources. The PackageList resource enables declaring an entire machine's desired package state in a single resource block. Eliminates the ~92s adapter overhead per resource invocation.
Authored with GitHub Copilot assistance.
🔗 References
Related Issues:
🔍 Validation
Spec document — no code changes to validate.
✅ Checklist
📋 Issue Type
Microsoft Reviewers: Open in CodeFlow