Introduce agentic-workflow to manage and update CsWin32 Package#65528
Merged
DeagleGross merged 14 commits intodotnet:mainfrom Apr 7, 2026
Merged
Introduce agentic-workflow to manage and update CsWin32 Package#65528DeagleGross merged 14 commits intodotnet:mainfrom
DeagleGross merged 14 commits intodotnet:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request introduces an agentic workflow to automate the monthly maintenance of the Microsoft.Windows.CsWin32 package dependency. The workflow will check for new stable package versions, update the version in eng/Versions.props if needed, and systematically search for and remove workarounds that were added for missing Win32 APIs, enum values, or types that are now available in newer CsWin32 releases.
Changes:
- Adds a monthly scheduled workflow using the agentic workflow framework (.md definition + compiled .lock.yml)
- Configures safe-inputs tool to query NuGet API for latest package versions
- Documents comprehensive patterns for identifying CsWin32 workarounds (hardcoded enum casts, manual P/Invoke declarations, manual struct definitions, TODO comments)
- Marks generated .lock.yml files as linguist-generated in .gitattributes
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/workflows/cswin32-update.md | Workflow definition with frontmatter configuration, documentation, and detailed instructions for version checking, building, and workaround cleanup |
| .github/workflows/cswin32-update.lock.yml | Auto-generated GitHub Actions workflow file compiled from the .md definition (contains typo from source) |
| .github/aw/actions-lock.json | Action version pinning for actions/github-script@v8 and gh-aw/actions/setup@v0.45.5 |
| .gitattributes | Marks .github/workflows/*.lock.yml as linguist-generated with merge strategy 'ours' |
wtgodbe
requested changes
Apr 7, 2026
Member
wtgodbe
left a comment
There was a problem hiding this comment.
Can you update the agent to leave a comment on these PRs telling a dev to kick off https://dev.azure.com/dnceng/internal/_build?definitionId=931&_a=summary?
wtgodbe
approved these changes
Apr 7, 2026
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.
CsWin32 Package is a good candidate to test out agentic-workflow updates, since it was not updated for a long time (see #65516)
I am proposing to use an agentic-workflow, which will periodically:
It should not be a burden to review small PRs making a small change, but will keep codebase up to date.
Test runs:
Closes #63686