Add manifest validation COM API specification - #6546
Kaleb Luedtke (Trenly) wants to merge 3 commits into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
After more research this is aready implemented by wingetutil.dll, however, a native COM interface could be complimentary to the DLL and / or would be more accessible to those building manifest tooling |
I'm just not sure of who the customer is really. This seems so niche and anyone who really wants to do it has an avenue. |
Part of it would be the internal requests for the PowerShell module to have all of the capabilities of the CLI - adding this to the COM server would enable that more easily. I'm also thinking of other tooling like Komac which could benefit from not having to pull in the additional DLL |
| Windows.Foundation.IAsyncOperation<ManifestValidationResult> | ||
| ValidateManifestAsync(String manifestPath, ValidationOptions options); |
There was a problem hiding this comment.
Not sure that this needs to be async. We should start sync and add async if there is demand in the future.
| multi-file manifest. The directory is not traversed recursively, and a child directory causes the | ||
| operation to fail. | ||
|
|
||
| An empty path or null `ValidationOptions` is invalid. Path-not-found, access-denied, and other |
There was a problem hiding this comment.
Null options should be supported as equivalent to a default constructed options.
📖 Description
Adds a specification for a new
Microsoft.Management.DeploymentCOM API that validates singleton and multi-file WinGet manifests using the existing native validation pipeline.The proposed API:
The specification also describes result semantics, compatibility, security, performance, activation, and test coverage. GitHub Copilot assisted with codebase analysis and drafting.
🔗 References
Related Issues
🔍 Validation
git diff --check.✅ Checklist
📋 Issue Type
Microsoft Reviewers: Open in CodeFlow