Repository navigation
Retarget SDK sources to net12.0 without updating stage zero - #9503
Merged
Merged
Conversation
Port dotnet/sdk#56348 into the VMR, preserving its runtime-pack conditions and leaving both global.json bootstrap SDK pins unchanged. Co-authored-by: Copilot App <[email protected]>
|
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. |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
One or more issues must be addressed before approval.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Retargets SDK source and task/tool assemblies to net12.0 while retaining .NET 11 bootstrap metadata, runtime dependencies, and generated test-app defaults.
Changes:
- Updates SDK TFM and task/tool lookup paths.
- Adds bootstrap compatibility accommodations and task-layout regression tests.
- Updates container API baselines and rollover documentation.
File summaries
| File | Description |
|---|---|
| src/sdk/test/Microsoft.NET.TestFramework/ToolsetInfo.cs | Updated as part of this pull request. |
| src/sdk/test/Microsoft.NET.Sdk.Web.Tests/PublishTests.cs | Updated as part of this pull request. |
| src/sdk/test/Microsoft.NET.Sdk.StaticWebAssets.Tests/Microsoft.NET.Sdk.StaticWebAssets.Tests.csproj | Updated as part of this pull request. |
| src/sdk/test/Microsoft.NET.Sdk.Razor.Tests/Microsoft.NET.Sdk.Razor.Tests.csproj | Updated as part of this pull request. |
| src/sdk/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests.csproj | Updated as part of this pull request. |
| src/sdk/test/Microsoft.NET.Sdk.BlazorWebAssembly.AoT.Tests/Microsoft.NET.Sdk.BlazorWebAssembly.AoT.Tests.csproj | Updated as part of this pull request. |
| src/sdk/test/Microsoft.NET.Publish.Tests/PublishTestUtils.cs | Updated as part of this pull request. |
| src/sdk/test/Microsoft.NET.Build.Tests/GivenTheSdkTaskLayout.cs | Updated as part of this pull request. |
| src/sdk/test/Microsoft.NET.Build.Containers.IntegrationTests/PackageTests.cs | Updated as part of this pull request. |
| src/sdk/src/WebSdk/Publish/Targets/Microsoft.NET.Sdk.Publish.targets | Updated as part of this pull request. |
| src/sdk/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.Common.targets | Updated as part of this pull request. |
| src/sdk/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.ApiCompat.targets | Updated as part of this pull request. |
| src/sdk/src/Tasks/Microsoft.NET.Build.Extensions.Tasks/msbuildExtensions/Microsoft/Microsoft.NET.Build.Extensions/Microsoft.NET.Build.Extensions.targets | Updated as part of this pull request. |
| src/sdk/src/StaticWebAssetsSdk/Targets/Sdk.StaticWebAssets.CurrentVersion.targets | Updated as part of this pull request. |
| src/sdk/src/RazorSdk/Targets/Sdk.Razor.CurrentVersion.targets | Updated as part of this pull request. |
| src/sdk/src/Layout/redist/tools/tool_fsc.csproj | Updated as part of this pull request. |
| src/sdk/src/Layout/redist/targets/Crossgen.targets | Updated as part of this pull request. |
| src/sdk/src/Containers/packaging/build/Microsoft.NET.Build.Containers.props | Updated as part of this pull request. |
| src/sdk/src/Containers/Microsoft.NET.Build.Containers/PublicAPI/net12.0/PublicAPI.Unshipped.txt | Updated as part of this pull request. |
| src/sdk/src/Containers/Microsoft.NET.Build.Containers/PublicAPI/net12.0/PublicAPI.Shipped.txt | Updated as part of this pull request. |
| src/sdk/src/BlazorWasmSdk/Targets/Microsoft.NET.Sdk.BlazorWebAssembly.6_0.targets | Updated as part of this pull request. |
| src/sdk/src/BlazorWasmSdk/Targets/Microsoft.NET.Sdk.BlazorWebAssembly.5_0.targets | Updated as part of this pull request. |
| src/sdk/documentation/general/UpdateToNewTargetFramework.md | Updated as part of this pull request. |
| src/sdk/Directory.Build.targets | Updated as part of this pull request. |
| src/sdk/Directory.Build.props | Updated as part of this pull request. |
| src/sdk/.github/memory/API_MAP.md | Updated as part of this pull request. |
Review details
Suppressed comments (1)
src/sdk/Directory.Build.props:73
SdkTargetFrameworkis also used to lay out dotnet-watch: its producer copies the files undertools/$(SdkTargetFramework), buttest/dotnet-watch.Tests/TestUtilities/MSBuildFixture.cs:27still constructs the fallback path fromToolsetInfo.CurrentTargetFramework(net11.0). After this change the dependencies are undernet12.0, so the watch tests' assembly resolver misses them; update that lookup to useSdkTargetFramework.
<NetCurrent>net12.0</NetCurrent>
<SdkTargetFramework>$(NetCurrent)</SdkTargetFramework>
<TargetingPackBaselineTargetFramework>net11.0</TargetingPackBaselineTargetFramework>
<TargetingPackCurrentTargetFramework>$(SdkTargetFramework)</TargetingPackCurrentTargetFramework>
- Files reviewed: 24/26 changed files
- Comments generated: 5
- Review effort level: Lite
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Decouple the external VSTest CLI package path from the SDK-local NetCurrent override. Preserve the net10.0 lookup for regular builds. Co-authored-by: Copilot App <[email protected]>
…trap Include a source-only net11.0 target so Arcade workload tasks can consume the package during stage-2 builds while SDK sources target net12.0. Document the cross-repository bootstrap compatibility requirement. Co-authored-by: Copilot App <[email protected]>
mthalman
approved these changes
Sep 21, 2026
Port dotnet/sdk#56348 follow-ups through 006c74304ad: align live baseline packs and pruning data, fix watch lookup, stabilize CLI and localization tests, and clarify container API documentation. Preserve VMR source-only pack overrides and bootstrap compatibility fixes. Co-authored-by: Copilot App <[email protected]>
9 of 31 tasks
mthalman
approved these changes
Sep 21, 2026
ViktorHofer
reviewed
Sep 25, 2026
Comment on lines
+49
to
+55
| <!-- NetTFMUpdate: Arcade creates Core pack entries, but watch and its tests also need ASP.NET Core. --> | ||
| <ItemGroup Condition="'$(EnableKnownPackItemsForUnknownTargetFramework)' == 'true'"> | ||
| <KnownFrameworkReference | ||
| Include="@(KnownFrameworkReference->WithMetadataValue('Identity', 'Microsoft.AspNetCore.App')->WithMetadataValue('TargetFramework', '$(TargetingPackBaselineTargetFramework)'))" | ||
| TargetFramework="$(TargetingPackCurrentTargetFramework)" | ||
| Condition="'@(KnownFrameworkReference->WithMetadataValue('Identity', 'Microsoft.AspNetCore.App')->AnyHaveMetadataValue('TargetFramework', '$(TargetingPackCurrentTargetFramework)'))' != 'true'" /> | ||
| </ItemGroup> |
Member
There was a problem hiding this comment.
Please bring this into the Arcade infra:
And remove the block here then.
ViktorHofer
reviewed
Sep 25, 2026
| <PropertyGroup Condition="('$(TargetFramework)' == '$(SdkTargetFramework)' or $(TargetFramework.StartsWith('$(SdkTargetFramework)-'))) and | ||
| $([MSBuild]::VersionLessThan('$(BundledNETCoreAppTargetFrameworkVersion)', '12.0'))"> | ||
| <!-- NetTFMUpdate: Use the baseline framework's pruning data and live packs until stage 0 supports net12. --> | ||
| <LoadPrunePackageDataFromNearestFramework>true</LoadPrunePackageDataFromNearestFramework> |
Member
There was a problem hiding this comment.
I think we should set this centrally in the Arcade SDK in TargetingPacks.BeforeCommon.targets. I don't think there are any downsides to that.
This was referenced Oct 22, 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 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.
🤖 Separates SDK source retargeting from the stage-0 SDK update by porting dotnet/sdk#56348 into the VMR, including all follow-up fixes through
006c74304ad2e988d3e0d96bb87e6b2b0b7392c3. Both the root andsrc/sdk/global.jsonSDK version entries remain unchanged.Approach
net12.0using Arcade's explicitnet11.0targeting-pack baseline. Reference APIs and runtime requirements remain on .NET 11 for this phase.The port preserves the VMR's newer source-only runtime-pack conditions in
Directory.Build.targets. Temporary bootstrap accommodations copy missing ASP.NET Core framework metadata, load pruning data from the nearest supported framework, and recognize live baseline reference-pack versions. The new pruning and baseline-version accommodations apply only to net12 source targets (including platform-qualified variants) on the older bootstrap. Product branding, runtime dependencies, and template defaults are unchanged.CI follow-up fixes
Validation
Microsoft.NET.Build.Tasksfornet12.0: no warnings or errors.11.0.0-rc.1.26453.118pack.Local validation used installed SDK
11.0.100-rc.1.26425.128, selected by the existing roll-forward policy, rather than the exact pinned11.0.100-rc.1.26420.103. The latest port's full VMR/source-build and SDK layout/integration coverage requires CI; no built SDK redist is available in this checkout.