Skip to content

Use version-independent directories for WPF build tasks - #10741

Merged
akoeplinger merged 1 commit into
dotnet:mainfrom
akoeplinger:akoeplinger-wpf-bootstrap-sdk-fix
Nov 5, 2026
Merged

akoeplinger merged 1 commit into
dotnet:mainfrom
akoeplinger:akoeplinger-wpf-bootstrap-sdk-fix

Conversation

@akoeplinger

@akoeplinger akoeplinger commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Summary

Package PresentationBuildTasks under tools/net for Core MSBuild and tools/netframework for .NET Framework MSBuild, and update Microsoft.WinFX.targets to select the matching directory. The assembly target frameworks remain unchanged.

This prevents the task-loading failure blocking #10718: bootstrap SDK 12.0.100-alpha.1.26554.104 contains tools/net12.0/PresentationBuildTasks.dll, but its WinFX targets select tools/net11.0.

Validation

  • Built the actual PresentationBuildTasks.csproj for both net12.0 and net472 on macOS ARM64.
  • Ran Build;Pack on the real Microsoft.NET.Sdk.WindowsDesktop.ArchNeutral.csproj with a fresh packaging directory. Inspected the resulting nupkg: tools/net/PresentationBuildTasks.dll and tools/netframework/PresentationBuildTasks.dll each match their freshly built outputs, with all 13 matching satellite assemblies per host. The package includes the matching WinFX selectors and SDK imports, with no versioned task folders.
  • Successfully executed the freshly built MarkupCompilePass1 through the staged package's Microsoft.WinFX.targets, loading tools/net/PresentationBuildTasks.dll.
  • Evaluated actual WPF packaging for Core net12.0/net13.0 and Framework net472/net48; all match the stable-directory selectors.
  • Six crossgen path cases pass, covering the stable layout, legacy fallback, preference when both exist, missing Core tools, Framework-only tools, and source-only builds.
  • Rebuilt Roslyn.SyntaxVisualizer.Control.csproj and Microsoft.CodeAnalysis.EditorFeatures.csproj using the exact bootstrap SDK with its task files manually rearranged into the stable layout on macOS ARM64.
  • Verified all 14 original SDK Framework payload files remain byte-for-byte identical after relocation; the task DLL still targets .NET Framework 4.7.2.

Windows MSBuild.exe/Visual Studio and design-time build behavior have not been exercised locally. The Roslyn builds use Core MSBuild, even when their projects target .NET Framework.

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]>
@akoeplinger
akoeplinger requested review from a team as code owners November 5, 2026 11:01
Copilot AI balanced review requested due to automatic review settings November 5, 2026 11:01
@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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the WPF task directory and SDK crossgen path changes.

No open issues 🎉

Review effort: Balanced

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.

3 participants