Skip to content

Re-Bootstrap to .NET 12.0.100-alpha.1.26554.104 - #10718

Closed
dotnet-release-bot[bot] wants to merge 3 commits into
mainfrom
release-pr-12.0.100-alpha.1.26554.104-main
Closed

dotnet-release-bot[bot] wants to merge 3 commits into
mainfrom
release-pr-12.0.100-alpha.1.26554.104-main

Conversation

@dotnet-release-bot

@dotnet-release-bot dotnet-release-bot Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Re-Bootstrap .NET to 12.0.0-alpha.1.26554.104 / 12.0.100-alpha.1.26554.104.

WPF build-task fixes

Cherry-picks the permanent source fix from #10741: package PresentationBuildTasks in version-independent tools/net and tools/netframework directories, select them by the MSBuild host runtime, and keep SDK crossgen compatible with existing versioned WindowsDesktop packages. Includes a TODO to remove the SDK's legacy WindowsDesktopTools fallback once all consumed packages use the stable layout.

That source change cannot repair the already-installed bootstrap SDK. The official 12.0.100-alpha.1.26554.104 SDK contains tools/net12.0/PresentationBuildTasks.dll, but its Microsoft.WinFX.targets selects tools/net11.0 under Core MSBuild, causing MSB4062.

A separate temporary workaround in eng/BootstrapSdk.targets repairs only that exact installed SDK version's Core selector, from net11.0 to net12.0, before repository-reference resolution and repo builds. It validates the expected Core/Framework selectors and payloads, is idempotent, and leaves the Framework selector (net472) and payload unchanged. Source-only bootstrap SDKs that omit WindowsDesktop entirely are intentionally skipped; partially installed or unexpected layouts fail explicitly. No eng/common files are modified by the workaround. A cleanup TODO calls for removing it when the bootstrap SDK advances to a corrected version.

Validation

  • Ten targeted bootstrap-repair checks passed using the unchanged official macOS ARM64 SDK archive: repair ordering, repeat invocation without rewriting, out-of-scope version, missing targets/Core/Framework payloads, unexpected selectors, empty install root, and source-only SDKs with/without WindowsDesktop.
  • Exercised the actual repo-projects/dotnet.proj /t:ResolveProjectReferences entrypoint with BuildProjectReferences=false. The original SDK reproduced MSB4062; after the hooked repair, the installed WPF FileClassifier task loaded and executed successfully.
  • Compared the complete WinFX XML semantics with the original plus only the expected Core selector change; Framework payload hashes remained unchanged. XmlPoke also normalizes XML formatting.
  • Permanent source-fix build/package validation is recorded in Use version-independent directories for WPF build tasks #10741.
  • Windows/VS Framework-hosted execution and full VMR builds have not been run locally. CI success is not claimed.

@dotnet-release-bot
dotnet-release-bot Bot requested review from a team as code owners November 4, 2026 23:31
@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.

@akoeplinger
akoeplinger enabled auto-merge (squash) November 4, 2026 23:32
@akoeplinger
akoeplinger disabled auto-merge November 4, 2026 23:32
@akoeplinger

Copy link
Copy Markdown
Member

/azp run dotnet-unified-build-full

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

Copy link
Copy Markdown
Member

@akoeplinger — the CI investigation and fix proposal are ready.

Failure: All 20 failed jobs across dotnet-unified-build (1664823) and dotnet-unified-build-full (1664829) report the same Roslyn/WPF task-loading error, on Windows, Linux/Alpine, and macOS:

MSB4062: Microsoft.Build.Tasks.Windows.MarkupCompilePass1
.../sdk/12.0.100-alpha.1.26554.104/Sdks/Microsoft.NET.Sdk.WindowsDesktop/tools/net11.0/PresentationBuildTasks.dll
The system cannot find the file specified.

This affects at least Roslyn.SyntaxVisualizer.Control.csproj and Microsoft.CodeAnalysis.EditorFeatures.csproj. The outer repo-projects/Directory.Build.targets MSB3073 errors are consequences of Roslyn exiting unsuccessfully, not separate root causes. A retry alone is not a suitable fix.

Source-level diagnosis: At both the PR head and the bootstrap's source revision (5266c2b7ca5674372a257f104235a3f84fb87f62), Microsoft.WinFX.targets, line 4 hard-codes _PresentationBuildTasksTfm to net11.0 for Core MSBuild. However, PresentationBuildTasks.csproj builds against $(BundledNETCoreAppTargetFramework), and packaging places the DLL under tools/$(TargetFramework). That leaves a rollover mismatch when the build SDK's bundled framework advances to .NET 12. The expected new location is tools/net12.0/PresentationBuildTasks.dll.

Proposed fix: Confirm that location in the 26554.104 archive, then update the Core task selector in WPF to net12.0 (leave the net472 selector unchanged), produce a corrected bootstrap SDK, and re-bootstrap this PR to that build. Longer-term, generate the selector from the task's actual build framework during packaging so the next rollover cannot recreate this mismatch.

Importantly, editing only src/wpf/.../Microsoft.WinFX.targets in this PR will not repair the already-built SDK under .dotnet that fails while building Roslyn. To prove the diagnosis before producing another SDK, patch the installed bootstrap SDK's Core selector to net12.0 after confirming the DLL exists there, then rerun the failing Roslyn build. Follow with the regular and full CI pipelines using the corrected bootstrap.

Limitation: I verified the failure signature through GitHub check annotations for every failed job and traced the relevant source/packaging logic. Azure DevOps could not be resolved from this session, so I could not inspect the complete logs or bootstrap archive; the DLL's actual packaged location remains to be verified. No code changes or CI retries were made.

@ViktorHofer

ViktorHofer commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Hardcoded TFMs keep giving:

<_PresentationBuildTasksTfm Condition="'$(MSBuildRuntimeType)' == 'Core'">net11.0</_PresentationBuildTasksTfm>

Whatever skill was used to drive the migration in other repos, we should update it to look out for these cases. We have been doing this mistake so many times.

akoeplinger and others added 2 commits November 5, 2026 12:03
Package PresentationBuildTasks under tools/net and tools/netframework and select the assembly by the MSBuild host runtime. Keep SDK crossgen compatible with existing versioned WPF packages and document when to remove that fallback.

Co-authored-by: Copilot App <[email protected]>
Repair only the installed 12.0.100-alpha.1.26554.104 SDK before repository builds. Validate the original WindowsDesktop layout and selectors, preserve the Framework payload, and allow source-only SDKs that omit WindowsDesktop. Remove this workaround when the bootstrap SDK is corrected.

Co-authored-by: Copilot App <[email protected]>
@dotnet-policy-service
dotnet-policy-service Bot requested review from a team November 5, 2026 11:08
@akoeplinger akoeplinger added the NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons) label Nov 5, 2026
@akoeplinger akoeplinger closed this Nov 6, 2026
@akoeplinger
akoeplinger deleted the release-pr-12.0.100-alpha.1.26554.104-main branch November 6, 2026 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants