Repository navigation
Retarget the SDK to net12.0 - #56086
marcpopMSFT wants to merge 15 commits into
Conversation
Update the bootstrap SDK and package feeds, retarget SDK components and current task paths to net12.0, and preserve temporary net11 dependencies until product branding catches up. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 464c5bbd-b195-44ce-a3c9-cd19f20fcf26
|
Azure Pipelines: Successfully started running 2 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.
🔵 Needs a closer look
Pull request overview
Retargets dotnet/sdk’s build-time components and SDK task/tool lookup paths to net12.0, along with bootstrap and metadata updates needed to build and run the SDK against the new TFM while keeping publish product-test TFMs on net11.0 for now.
Changes:
- Update bootstrap acquisition inputs (global.json + NuGet feeds) to a toolset that can build net12-targeting SDK components.
- Retarget MSBuild task/tool lookup paths across SDK targets (Publish, Build.Tasks, Razor/SWA/BlazorWasm, Containers) from net11.0 to net12.0.
- Extend supported-framework metadata and roll PublicAPI baselines/docs forward to net12.0.
File summaries
| File | Description |
|---|---|
| test/Microsoft.NET.Sdk.Web.Tests/PublishTests.cs | Update compile-time gating for SupportedTfms for the new SDK build TFM while keeping scenarios on net11. |
| test/Microsoft.NET.Publish.Tests/PublishTestUtils.cs | Same SupportedTfms gating adjustment for publish tests. |
| src/WebSdk/Publish/Targets/Microsoft.NET.Sdk.Publish.targets | Retarget publish task folder selection to net12.0 for Core MSBuild. |
| src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.SupportedTargetFrameworks.props | Add net12 supported framework metadata. |
| src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.Common.targets | Retarget build tasks directory TFM selection to net12.0 for Core MSBuild. |
| src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.ApiCompat.targets | Retarget ApiCompat task assembly lookup path to net12.0. |
| src/Tasks/Microsoft.NET.Build.Extensions.Tasks/msbuildExtensions/Microsoft/Microsoft.NET.Build.Extensions/Microsoft.NET.Build.Extensions.targets | Retarget Build.Extensions tasks lookup path to net12.0 for Core MSBuild. |
| src/StaticWebAssetsSdk/Targets/Sdk.StaticWebAssets.CurrentVersion.targets | Retarget SWA tasks/tool lookup paths to net12.0. |
| src/RazorSdk/Targets/Sdk.Razor.CurrentVersion.targets | Retarget Razor tasks lookup path to net12.0. |
| src/Layout/redist/tools/tool_fsc.csproj | Temporary rollover workaround: pin F# compiler package TFM path to net11.0. |
| src/Containers/packaging/build/Microsoft.NET.Build.Containers.props | Retarget container tasks folder selection to net12.0. |
| src/Containers/Microsoft.NET.Build.Containers/PublicAPI/net12.0/PublicAPI.Unshipped.txt | New net12 PublicAPI baseline content (issue: missing #nullable enable header). |
| src/Containers/Microsoft.NET.Build.Containers/PublicAPI/net12.0/PublicAPI.Shipped.txt | New net12 shipped baseline stub. |
| src/Cli/dotnet-aot/dotnet-aot.csproj | Update example comment to reflect net12 RID-specific assets target. |
| src/BlazorWasmSdk/Targets/Microsoft.NET.Sdk.BlazorWebAssembly.6_0.targets | Retarget BlazorWasm tasks/tool lookup paths to net12.0. |
| src/BlazorWasmSdk/Targets/Microsoft.NET.Sdk.BlazorWebAssembly.5_0.targets | Retarget BlazorWasm tasks/tool lookup paths to net12.0. |
| NuGet.config | Add dotnet12 feeds for bootstrap-associated packages. |
| global.json | Bump bootstrap SDK version to 11.0.100-rc.1.26431.117. |
| documentation/general/UpdateToNewTargetFramework.md | Document adding new-major feeds as part of rollover. |
| Directory.Build.props | Temporary rollover workaround: set NetCurrent/SdkTargetFramework explicitly to net12.0. |
| .github/memory/API_MAP.md | Update memory doc link to container PublicAPI baseline for net12.0. |
Review details
- Files reviewed: 19/21 changed files
- Comments generated: 0
- Review effort level: Lite
Apply the maximum target framework and missing prune data overrides in repository build configuration so every CI leg can build the net12-targeted SDK. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 464c5bbd-b195-44ce-a3c9-cd19f20fcf26
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 464c5bbd-b195-44ce-a3c9-cd19f20fcf26
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 464c5bbd-b195-44ce-a3c9-cd19f20fcf26
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 464c5bbd-b195-44ce-a3c9-cd19f20fcf26
Build Failure AnalysisResult: No build/compile errors found in the binlogs I could analyze — this looks like a non-build failure (test/Helix/publishing) or the root cause lives in a leg I could not inspect (see gap below), so no code changes are suggested. What I checkedI queried
Analysis gapTwo legs could not be analyzed — every
Since these two logs could not be inspected, I cannot rule out a compile failure hiding in one of them. If the pipeline failure isn't explained by a test/Helix/publishing issue, please have a human check these two legs directly in the Azure DevOps build: 🔗 [Azure DevOps build results]((dev.azure.com/redacted) Verified PR head SHA ( 🤖 Generated by the Build Failure Analysis workflow using binlog-mcp · commit ea91882
|
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 464c5bbd-b195-44ce-a3c9-cd19f20fcf26
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 464c5bbd-b195-44ce-a3c9-cd19f20fcf26
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 464c5bbd-b195-44ce-a3c9-cd19f20fcf26 # Conflicts: # global.json
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 464c5bbd-b195-44ce-a3c9-cd19f20fcf26
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 464c5bbd-b195-44ce-a3c9-cd19f20fcf26
Keep generated-project and template tests aligned with the net11 product default during the staged net12 source rollover. Preserve dotnet help naming and make NativeAOT managed-module validation deterministic. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 464c5bbd-b195-44ce-a3c9-cd19f20fcf26
Port the latest fixes from dotnet/sdk#56086 and update the VMR root bootstrap SDK so component builds have net12 ASP.NET Core framework-reference metadata. Co-authored-by: Copilot App <[email protected]> Copilot-Session: a76caf7b-a621-4acd-9c5c-42b84d70181c
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 464c5bbd-b195-44ce-a3c9-cd19f20fcf26
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 464c5bbd-b195-44ce-a3c9-cd19f20fcf26
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 464c5bbd-b195-44ce-a3c9-cd19f20fcf26
|
closed in favor of dotnet/dotnet#9076 |
🤖 The SDK can now target net12.0 after the required known framework reference support became available. This adopts the first branded .NET 12 bootstrap toolset and retargets SDK components while leaving the built SDK product default, templates, runtime packs, and unavailable ASP.NET/workload artifacts on net11 for their separate rollover steps.
Changes
global.jsonSDK entries to12.0.100-alpha.1.26458.102; future bootstrap updates for this effort must remain on .NET 12 and at or above this build.NETCoreAppMaximumVersion=12override until Arcade advances its default.AllowMissingPrunePackageDataand temporary Options, Asn1, and URI package references.ToolsetInfo.CurrentTargetFrameworkremains synchronized withProduct.TargetFrameworkVersion, whileToolsetInfo.SdkTargetFrameworkidentifies the net12 source/test-host assembly TFM.dotnet testcoverage with the intended split between net12 source compilation and deferred net11 product assets.Microsoft.NETCore.AppandMicrosoft.AspNetCore.Appruntimes into cross-architecture test sidecars so Helix payloads do not mix target-architecture hosts with x64 shared-framework binaries.RootCommand.HelpNamein the SDK help builder so managed and NativeAOT usage consistently displaysdotnetregardless of the test host executable name.Temporary cross-architecture runtime bridge
The bootstrap SDK selected by
global.jsonincludes a net12 runtime for the build host architecture, while the repository's normal product dependency flow still supplies exact net11 Core and ASP.NET Core runtimes for target-architecture test payloads. Because this PR moves the SDK test-host assemblies to net12, cross-architecture Helix legs also need target-architecture copies of the bootstrap SDK's exact net12Microsoft.NETCore.AppandMicrosoft.AspNetCore.Appruntimes. The restore helpers therefore acquire those bootstrap runtime versions explicitly and stage them in a separate target-architecture sidecar rather than mixing them into the host.dotnetinstallation.Once
Version.Details.propsadvances the normal product runtime flow to net12, the bootstrap-specific Core and ASP.NET Core runtime additions should be removed because the regular toolset acquisition will provide those versions. The cross-architecture sidecar mechanism is a separate concern and may still be required whenever the build host and Helix payload architectures differ.Validation
dotnet-aot.Tests.dllin deterministic output.12.0.0-alpha.1.26458.102, the macOS arm64 payload exists on the configured fallback feed, and all 41 affected CLI help/response-file cases pass.