Skip to content

Use Platforms dependency for runtime installation - #12057

Merged
dipeshmsft merged 1 commit into
dotnet:mainfrom
akoeplinger:fix-runtime-platforms-main
Oct 29, 2026
Merged

dipeshmsft merged 1 commit into
dotnet:mainfrom
akoeplinger:fix-runtime-platforms-main

Conversation

@akoeplinger

@akoeplinger akoeplinger commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

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 $files pointing at the temporary validation directory, both commands passed:

    powershell.exe -NoProfile -ExecutionPolicy Bypass -File "$files\dotnet-install.ps1" -Runtime dotnet -Version 12.0.0-alpha.1.26519.114 -Architecture x64 -AzureFeed https://ci.dot.net/public -InstallDir "$files\runtime-main-x64" -NoPath
    powershell.exe -NoProfile -ExecutionPolicy Bypass -File "$files\dotnet-install.ps1" -Runtime dotnet -Version 12.0.0-alpha.1.26519.114 -Architecture x86 -AzureFeed https://ci.dot.net/public -InstallDir "$files\runtime-main-x86" -NoPath
  • dotnet.exe --list-runtimes on each isolated installation confirmed Microsoft.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

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
@akoeplinger
akoeplinger requested review from a team and a balanced review from Copilot October 28, 2026 13:44
@akoeplinger
akoeplinger requested a review from a team as a code owner October 28, 2026 13:44
@dotnet-policy-service dotnet-policy-service Bot added the PR metadata: Label to tag PRs, to facilitate with triage label Oct 28, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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.Platforms from 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

@dipeshmsft
dipeshmsft merged commit dbd3026 into dotnet:main Oct 29, 2026
8 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Oct 30, 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR metadata: Label to tag PRs, to facilitate with triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants