Uh oh!
There was an error while loading. Please reload this page.
fix(release): Restore WinGet publication with .NET 9 wingetcreate - #19551
Merged
Ankit Jain (radical) merged 1 commit intoAug 20, 2026
Merged
Conversation
…ingetcreate (microsoft#19509) * fix(release): install .NET 9 for wingetcreate WinGet publication fails before submit because the latest standalone wingetcreate targets .NET 9 and is framework-dependent, while the release agent image has no compatible runtime: wingetcreate.exe : You must install or update .NET to run this application. Install the .NET 9 runtime in the gated submission path before launching wingetcreate. Exercise the latest executable with `info` in normal WinGet preparation builds so future runtime incompatibilities fail before release. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * fix(release): exercise wingetcreate in dry runs The WinGet setup steps were gated by live production submission, so dry runs skipped both the .NET 9 runtime installation and the wingetcreate startup check. That prevented a safe branch run from proving that the latest wingetcreate executable could launch. Run UseDotNet and wingetcreate info whenever the WinGet job is selected, while retaining the live-only gate on URL validation and submission. This validates runtime compatibility without opening an upstream PR. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Ankit Jain (radical)
requested review from
Adam Ratzman (adamint) and Jose Perez Rodriguez (joperezr)
and
a balanced review from CopilotAugust 20, 2026 20:59
Contributor
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 19551Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 19551" |
Ankit Jain (radical)
marked this pull request as ready for review
August 20, 2026 21:00
Contributor
There was a problem hiding this comment.
Pull request overview
Restores WinGet publishing by installing .NET 9 before running the framework-dependent wingetcreate.
Changes:
- Installs the .NET 9 runtime in preparation and release jobs.
- Runs
wingetcreate infoas an early compatibility check. - Adds pipeline contract tests and documentation.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
eng/pipelines/templates/publish-winget.yml | Verifies wingetcreate before gated submission. |
eng/pipelines/templates/prepare-winget-manifest.yml | Adds regular compatibility smoke testing. |
tests/Infrastructure.Tests/Pipelines/ReleasePublishNugetPipelineTests.cs | Tests runtime setup and submission gating. |
eng/winget/README.md | Documents the validation behavior. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Ankit Jain (radical)
enabled auto-merge (squash)
August 20, 2026 23:00
Jose Perez Rodriguez (joperezr)
approved these changes
Aug 20, 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 freeto 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
Forward port of #19509 from
release/13.5tomain.WinGet publication failed before opening the upstream PR:
The latest framework-dependent
wingetcreatetargets .NET 9, but the release agent did not have a compatible runtime. This installs the .NET 9 runtime before launchingwingetcreateand runswingetcreate infoin regular preparation and selected release jobs so future runtime incompatibilities fail before a live submission.The actual
wingetcreate submitstep remains restricted to non-dry-run production-branch runs.Validation:
ReleasePublishNugetPipelineTests.WinGetJobVerifiesWingetCreateBeforeConditionalSubmissionReleasePublishNugetPipelineTests.WinGetPreparationExercisesWingetCreateFixes # (issue)
Checklist
<remarks />and<code />elements on your triple slash comments?