-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Do not import .NET Framework's copy of Microsoft.WinFX.targets
when building Sdk style projects.
#4948
Comments
This is limited to the case where the sdk project targets .NET Framework, right? I am not sure that we can "fix" this as it's a breaking change. Some people managed to use the in-box PBT with SDK projects. We would have had to have had the foresight to turn them off in v1 of the SDK to do this without breaking. My suggestion would be to just document to use Microsoft.NET.Sdk.WindowsDesktop moving forward for these use cases, if we can get away with that. |
Well, that case also affects multitarget SDK projects where you have e.g. If this is fixed it must be done in a way that If above is not possible then its preferable to be left in the current state. |
@nguerrera Is there a property that we can use to explicitly remove the .NET Framework targets? If compat is concern we can make it opt-out by setting the property. |
From dotnet/wpf#2258 (comment)
This results in inconsistent results for
Resource
items when built bymsbuild
vs.dotnet
. For e.g., aMicrosoft.NET.Sdk
project withResource
items built usingmsbuild
will invoke PresentationBuildTasks (the .NET Framework version) and embed the resource into the assembly.The same project, when built using
dotnet
will not do this.A developer could perceive the
dotnet
behavior as a regression (as seen in dotnet/wpf#2258), but in reality themsbuild
behavior is unexpected./cc @nguerrera, @dsplaisted, @livarcocc
/cc @rladuca
The text was updated successfully, but these errors were encountered: