Repository navigation
Use Platforms dependency for runtime installation - #12057
Merged
Merged
Conversation
Port the release/11.0 fix to main without changing the selected runtime build. Track Microsoft.NETCore.Platforms instead of the stabilizing reference-pack version. Co-authored-by: Copilot <[email protected]> Copilot-Session: cc64d867-538a-4a30-bc06-36e6125f92e9
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the change to select bootstrap runtimes using the Microsoft.NETCore.Platforms version.
No open issues 🎉
What changed in this PR
Ports the release/11.0 bootstrap fix to main by selecting runtimes from Microsoft.NETCore.Platforms, whose build-stamped version remains available when reference packs stabilize. The selected runtime build remains unchanged.
Changes:
- Tracks
Microsoft.NETCore.Platformsfrom the same VMR snapshot as existing runtime dependencies. - Adds its package-version property and alias.
- Switches x64 and x86 runtime installation selectors to the Platforms version.
| File | Description |
|---|---|
global.json |
Uses the Platforms version for both runtime architectures. |
eng/Version.Details.xml |
Records the Platforms dependency version and source provenance. |
eng/Version.Details.props |
Adds the Platforms package-version property and alias. |
Review effort: Balanced
mmitche
approved these changes
Oct 28, 2026
subhajitm
approved these changes
Oct 28, 2026
dipeshmsft
approved these changes
Oct 29, 2026
subhajitm
added a commit
that referenced
this pull request
Nov 4, 2026
global.json references $(MicrosoftNETCorePlatformsVersion) (from #12057), but the property was dropped from eng/Version.Details.* during the #12062 codeflow merge, causing InstallDotNetCore to fail. Co-authored-by: Copilot <[email protected]>
dotnet-maestro Bot
added a commit
that referenced
this pull request
Nov 6, 2026
[main] Source code updates from dotnet/dotnet - Restore Microsoft.NETCore.Platforms dependency global.json references $(MicrosoftNETCorePlatformsVersion) (from #12057), but the property was dropped from eng/Version.Details.* during the #12062 codeflow merge, causing InstallDotNetCore to fail. Co-authored-by: Copilot <[email protected]>
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.
Related to #12039.
Main PR: this PR ports the release/11.0 fix from #12039.
Description
Track Microsoft.NETCore.Platforms from the same VMR snapshot as the existing runtime dependencies and use MicrosoftNETCorePlatformsVersion for x64 and x86 runtime installation.
Unlike Microsoft.NETCore.App.Ref, Platforms retains its build-stamped version when packages stabilize. This preserves the build-specific runtime download directory used by dotnet-install. The current main runtime build remains 12.0.0-alpha.1.26519.114.
Customer Impact
Prevents build/bootstrap failures when the reference pack stabilizes before release-version runtime download directories are available. No shipped runtime behavior or public API changes.
Regression
No current main-branch regression; ports the fix for the release/11.0 bootstrap failure to prevent recurrence.
Testing
git diff --check- passed.Temporary JSON/XML and MSBuild validation passed: dependency provenance, generated package-version property and alias, and both global.json runtime selectors resolve consistently to
12.0.0-alpha.1.26519.114.Installed both runtime architectures into isolated temporary directories using the official dotnet-install script. With
$filespointing at the temporary validation directory, both commands passed:dotnet.exe --list-runtimeson each isolated installation confirmedMicrosoft.NETCore.App 12.0.0-alpha.1.26519.114.Full product build and unit tests were not run; this change is limited to build bootstrap configuration.
Risk
Low. Only dependency metadata and runtime installation selectors change; the selected runtime build is unchanged.
Microsoft Reviewers: Open in CodeFlow