Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Desktop WPF use Core WPF targets and tasks (MarkupCompile) #36585

Open
KirillOsenkov opened this issue Oct 31, 2023 · 0 comments
Open

Make Desktop WPF use Core WPF targets and tasks (MarkupCompile) #36585

KirillOsenkov opened this issue Oct 31, 2023 · 0 comments
Assignees
Labels
Area-NetSDK needs team triage Requires a full team discussion

Comments

@KirillOsenkov
Copy link
Member

KirillOsenkov commented Oct 31, 2023

Currently when you build a WPF application for net472 and use legacy WPF, it imports C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Xaml.targets:

image

The targets are legacy and haven't been updated. For example, GenerateTemporaryTargetAssembly task doesn't have the latest properties:

image

We need to stop relying on things from C:\Windows, for hermetic and isolated builds. Moving to the same targets and tasks in the SDK instead ensures portability (you could build WPF desktop projects on Mac, for example) and future-proofs them.

Bonus: see if it's possible to use the new WPF assemblies for net472 desktop applications, instead of the ones shipping in .NET Framework. If possible, this would allow to prepare WPF apps for moving to .NET Core.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-NetSDK untriaged Request triage from a team member labels Oct 31, 2023
@MiYanni MiYanni added needs team triage Requires a full team discussion and removed untriaged Request triage from a team member type-investigation labels Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-NetSDK needs team triage Requires a full team discussion
Projects
None yet
Development

No branches or pull requests

2 participants