Repository navigation
Add net12 known framework references - #8542
Conversation
Freeze net11 package and RID metadata while adding the live net12 framework reference block. Refresh the annual target framework rollover guide with the invariants learned from the net11 transition. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 8cc87628-37d4-4689-92d7-63e5457ab266
Use the frozen preview 7 runtime versions as DefaultRuntimeFrameworkVersion for net11 known framework references so prerelease applications resolve and launch correctly. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 8cc87628-37d4-4689-92d7-63e5457ab266
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
Pull request overview
Ports dotnet/sdk changes into the VMR to introduce net12.0 known framework/runtime-pack metadata while freezing net11.0 metadata to pinned preview package versions, reducing churn during ongoing .NET 12 onboarding and dependency flow.
Changes:
- Add
net12.0KnownFrameworkReference / Known*Pack entries and update “current” RID alias layers toNet120*. - Freeze
net11.0KnownFrameworkReference / Known*Pack versions to explicit11.0.0-preview.7.26381.103properties and pointnet11.0blocks atNet110*RID snapshots. - Rewrite the “Update to new target framework” guide to document the repeatable rollover sequence and invariants (package-version pins + per-TFM RID boundaries).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/sdk/src/Layout/redist/targets/GenerateBundledVersions.targets | Adds net12.0 known framework references, introduces Net120* RID boundary layers, and pins net11.0 pack versions to prevent backward metadata drift. |
| src/sdk/documentation/general/UpdateToNewTargetFramework.md | Updates the rollover guide with the recommended sequence and explicit invariants learned from the net11 → net12 transition work. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Override RuntimeFrameworkVersion for nested scenario-test builds when TestFxVersion is supplied, so generated applications target the runtime installed by the VMR test leg. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4de822fd-3fe2-4078-b206-a8570dfabdf1
Override the frozen net11 framework and targeting pack versions when building the SDK from source so source-build tests consume the packs produced by the current VMR build. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4de822fd-3fe2-4078-b206-a8570dfabdf1
Allow source-build to override frozen net11 pack versions, derive runtime and ASP.NET versions from their respective produced packages, and include the source-built RID in net11 metadata before net12 inherits it. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4de822fd-3fe2-4078-b206-a8570dfabdf1
There was a problem hiding this comment.
The changes in repo-projects/Directory.Build.targets look wrong to me. We shouldn't pass these additional global properties in to every repository. That pollutes the inputs of all inner repos while only sdk needs them.
Also, we shouldn't pass underscore properties in as global properties. I wouldn't pass any of those in and instead condition the logic in GenerateBundledVersions.targets logic on the existing global properties, i.e. KnownFrameworkReferenceMicrosoftNETCoreAppCurrentTargetingPackVersion and introduce the two additional global properties for the aspnetcore targeting and runtime pack.
Btw, all these properties enable the following infrastructure in arcade to make SB target the latest versions automatically: https://github.com/dotnet/arcade/blob/6e8b73df4173e497174229e0acbda23b30f7ed96/src/Microsoft.DotNet.Arcade.Sdk/tools/TargetingPacks.BeforeCommonTargets.targets#L139
So the SDK might be able to not do anything special at all and just set EnableKnownPackVersionUpdatesForCurrentTargetFramework=true in redist.csproj.
Restore the VMR repository property flow and have SDK redist generation consume the existing public current-framework overrides when producing source-built net11 metadata. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4de822fd-3fe2-4078-b206-a8570dfabdf1
|
🤖 Reworked this along the proposed path in 8642c1c:
This preserves the preview-7 fallback when no current-framework override is supplied. |
Arcade enables current-framework known-pack updates by default. Source-build remains distinguished by the public version override supplied by the VMR, while regular builds retain the pinned preview 7 fallback. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4de822fd-3fe2-4078-b206-a8570dfabdf1
Keep preview 7 metadata for product builds, but override net11 runtime and ASP.NET versions from SDK-local live package properties in source-build. Move the existing product RID additions to the net11 item boundaries so frozen metadata can resolve source-built packs without VMR-specific property flow. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4de822fd-3fe2-4078-b206-a8570dfabdf1
|
🤖 Reworked the source-build fix in
|
Retain the existing latest-TFM ProductMonikerRid additions alongside the temporary .NET 11-specific source-build workaround. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4de822fd-3fe2-4078-b206-a8570dfabdf1
|
🤖 Applied Viktor's latest feedback in commit 893fae4. The existing latest-TFM ProductMonikerRid additions are restored unchanged, while the temporary .NET 11-specific source-build RID additions remain in place. This intentionally allows the source-built RID to appear twice in the latest TFM lists until the temporary .NET 11 workaround can be removed. |
Port of dotnet/sdk#55880 to accelerate VMR flow while review and testing continue in the SDK repository.
Summary
net12.0known framework and runtime-pack metadata set.net11.0package versions and default runtime versions at the public preview 7 build, including version-sensitive RID lists.The temporary net11 pins use
11.0.0-preview.7.26381.103and should move to11.0.$(VersionFeature110)after .NET 11 GA.Tracking: dotnet/sdk#55851
Validation
Not run locally; this is an exact two-commit port of the SDK PR for VMR validation.