Skip to content

[release/11.0.2xx] Initialize SDK band versions - #9512

Merged
marcpopMSFT merged 13 commits into
release/11.0.2xxfrom
branding-update/release-11.0.2xx-sdk-band-init
Oct 8, 2026
Merged

marcpopMSFT merged 13 commits into
release/11.0.2xxfrom
branding-update/release-11.0.2xx-sdk-band-init

Conversation

@marcpopMSFT

@marcpopMSFT marcpopMSFT commented Sep 18, 2026 •

Copy link
Copy Markdown
Member

Initialize SDK band versions and configure release/11.0.2xx as an SDK-only band.

Version updates:

  • root: SDK minor 1 -> 2, patch 0 -> 00
  • sdk: SDK minor 1 -> 2, patch 0 -> 00
  • sourcelink: patch 100 -> 200
  • prerelease label: preview, with an empty iteration

SDK-only band preparation:

  • Remove runtime-owned source trees: aspnetcore, cecil, command-line-api, efcore, emsdk, runtime, symreader, windowsdesktop, winforms, wpf, and xdt
  • Remove those repositories and ASP.NET Core submodules from source-mappings.json and source-manifest.json
  • Set excludeRuntimeDependentJobs: true in the official, PR, scout, and unofficial VMR pipelines

@marcpopMSFT

Copy link
Copy Markdown
Member Author

Runtime directories are still present in this VMR branch and must be removed manually:

  • src/aspnetcore
  • src/cecil
  • src/command-line-api
  • src/efcore
  • src/emsdk
  • src/runtime
  • src/windowsdesktop
  • src/wpf
  • src/winforms
  • src/xdt
  • src/symreader

Manual cleanup steps (run on this PR's source branch):

  • git rm -r src/aspnetcore
  • git commit -m "Remove src/aspnetcore from VMR band"
  • git rm -r src/cecil
  • git commit -m "Remove src/cecil from VMR band"
  • git rm -r src/command-line-api
  • git commit -m "Remove src/command-line-api from VMR band"
  • git rm -r src/efcore
  • git commit -m "Remove src/efcore from VMR band"
  • git rm -r src/emsdk
  • git commit -m "Remove src/emsdk from VMR band"
  • git rm -r src/runtime
  • git commit -m "Remove src/runtime from VMR band"
  • git rm -r src/windowsdesktop
  • git commit -m "Remove src/windowsdesktop from VMR band"
  • git rm -r src/wpf
  • git commit -m "Remove src/wpf from VMR band"
  • git rm -r src/winforms
  • git commit -m "Remove src/winforms from VMR band"
  • git rm -r src/xdt
  • git commit -m "Remove src/xdt from VMR band"
  • git rm -r src/symreader
  • git commit -m "Remove src/symreader from VMR band"

Pipeline note:

  • Set excludeRuntimeDependentJobs: "false" in the root pipeline *.yml.

@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team September 18, 2026 21:36
@azure-pipelines

Copy link
Copy Markdown
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.

@mmitche
mmitche requested review from a team as code owners September 22, 2026 13:47
Remove runtime-owned repositories and their source metadata, and exclude runtime-dependent pipeline jobs.

Co-authored-by: Copilot <[email protected]>
@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team September 22, 2026 14:11
Add the 1xx Microsoft.NET.Sdk dependency used by source-build prep, fail fast when shared-component acquisition fails, and reuse the pipeline-provided components during prep.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: ada0423a-4f2b-4c65-b9b4-d06a9999eee2
@akoeplinger

Copy link
Copy Markdown
Member

the build failure needs to be addressed

@marcpopMSFT

Copy link
Copy Markdown
Member Author

Source-build failure investigation

I traced the failing SB_CentOSStream10_Online_MsftSdk_x64 leg in build 1620535 to Microsoft.DotNet.HotReload.WebAssembly.Browser.csproj.

The project targets net10.0, but the SDK-only source-build compiles it with this mismatched pair:

  • Reference contract: Microsoft.NETCore.App.Ref/10.0.0/ref/net10.0 from source-build-reference-packages
  • Source generator: the .NET 11 System.Text.Json.SourceGeneration.dll from the previously source-built SDK (11.0.0-rc.1.26425.128)

The .NET 11 generator emits assignments to new members such as JsonObjectInfoValues<T>.PolymorphismOptions and TypeClassifierFactory. Those members are not present in the .NET 10 reference contract, resulting in the repeated CS0117 failures.

I also compared this with successful 11.0.1xx source-build build 1621116, including its stage-2 leg. The same Hot Reload project is built under a net10.0 output directory, but it actually compiles against the live-built Microsoft.NETCore.App.Ref/11.0.0-ci/ref/net11.0 contract and the matching 11.0 generator. That is why 1xx succeeds: the generator and reference contract agree. It does not demonstrate that the 11.0 generator is compatible with the real net10 contract.

The SDK-only feature-band build exposes this because it consumes shared components instead of rebuilding runtime. Arcade's downlevel targeting-pack handling supplies the real net10 reference pack, while AddAnalyzersFromBundledNETCoreAppTargetingPack injects analyzers from the current bundled 11.0 pack.

Recommended direction

We should preserve the genuine net10 contract for this compatibility asset and ensure its generator is compatible with that contract. The preferred fixes are, in order:

  1. Make the .NET 11 System.Text.Json generator inspect the referenced contract and omit initializers for APIs that are unavailable in net10; or
  2. Supply the matching .NET 10 source generator whenever the net10 reference pack is selected.

Changing the SDK-only build to compile this net10.0 asset against net11 references, as the current 1xx source-build happens to do, would only mask the incompatibility and could produce an assembly that fails when used on .NET 10. A project-specific Dotnet.Watch workaround would likewise treat the symptom rather than fixing the reference-pack/analyzer consistency issue.

The branding changes themselves do not appear to cause the failure; they cause the SDK-only build path to exercise this previously hidden mismatch.

@marcpopMSFT

Copy link
Copy Markdown
Member Author

@akoeplinger my copilot investigated the build failure and seems to think it's actually a compat bug in the system text json source generator. Who's the best person to route that too and confirm if this is something that should be fixed there or worked around?

@akoeplinger

akoeplinger commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

@eiriktsarpalis can you help here?

cc @ViktorHofer @mthalman shouldn't we still override the versions in 2xx too when consuming the shared runtime?

@eiriktsarpalis

Copy link
Copy Markdown
Member

The .NET 11 generator emits assignments to new members such as JsonObjectInfoValues<T>.PolymorphismOptions and TypeClassifierFactory. Those members are not present in the .NET 10 reference contract, resulting in the repeated CS0117 failures.

This should only occur if the STJ v11 generator is used to target STJ v10 runtime APIs. This is not a supported scenario -- a .NET 10 project can reference the STJ v11 package but that typically updates both the generator AND the runtime bits.

@marcpopMSFT

Copy link
Copy Markdown
Member Author

/azp run dotnet-unified-build

@marcpopMSFT marcpopMSFT closed this Oct 6, 2026
@marcpopMSFT marcpopMSFT reopened this Oct 6, 2026
@mthalman

mthalman commented Oct 7, 2026

Copy link
Copy Markdown
Member

/azp run dotnet-unified-build

@mthalman mthalman closed this Oct 7, 2026
@mthalman mthalman reopened this Oct 7, 2026
Comment thread repo-projects/Directory.Build.targets Resolved
@marcpopMSFT marcpopMSFT closed this Oct 8, 2026
@marcpopMSFT marcpopMSFT reopened this Oct 8, 2026
@marcpopMSFT
marcpopMSFT merged commit 437b843 into release/11.0.2xx Oct 8, 2026
7 of 9 checks passed
nagilson added a commit to dotnet/sdk that referenced this pull request Oct 23, 2026
…elease/11.0.1xx-to-release/11.0.2xx

Conflict resolutions:
- sdk.slnx, dotnet.csproj: keep Microsoft.DotNet.Cli.InternalMicrosoft (2xx, #56458); drop
  Microsoft.DotNet.Cli.Telemetry (removed in 1xx by #56274, replaced by Azure Monitor exporter 1.10.0).
- Program.cs: combine 1xx exit-code-aware shutdown drain with 2xx internal-Microsoft detection wait.
- Versions.props: take 1xx runtime version features (#56629: 8.0.33, 9.0.22, 10.0.MinorPatch+14) and
  restore 11.0.2xx preview band branding to match dotnet/dotnet#9512 (VersionSDKMinor 2, patch 00,
  preview label, empty iteration) instead of the auto-merged 1xx rtm label.

Fixes for files reset to release/11.0.2xx by the flow bot:
- Add Microsoft.NET.ProjectData.Tasks 5.13.0-1.26508.107 dependency (needed by #56243 from 1xx).
- Disable central transitive pinning in tool_projectdata (content-only harvest) so the 2xx ProjectData
  package's NuGet.Versioning floor does not conflict with the 2xx NuGet band.
- Update testfx dependencies to 1xx versions (MSTest 4.5.0-preview.26477.3, MTP 2.5.0-preview.26477.3)
  needed by 1xx HotReload.Client tests (#56609).

Co-authored-by: Copilot <[email protected]>
@akoeplinger
akoeplinger deleted the branding-update/release-11.0.2xx-sdk-band-init branch October 27, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants