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

Default to not importing .net framework winfx targets #10998

Merged
merged 3 commits into from
May 6, 2020

Conversation

benvillalobos
Copy link
Member

Part 2 fix to dotnet/msbuild#4948

Part 1 is here: dotnet/msbuild#5200

Prevents sdk style projects from importing the .net framework winfx targets.

@wli3
Copy link

wli3 commented Mar 27, 2020

any test?

@benvillalobos
Copy link
Member Author

Currently attempting to verify this works locally.

@benvillalobos
Copy link
Member Author

Verified that this works locally. This only affects building using msbuild or visual studio so the full framework winfx.targets doesn't get imported.


<!-- Workaround: https://github.com/microsoft/msbuild/issues/4948 -->
<PropertyGroup>
<ImportFrameworkWinFXTargets>false</ImportFrameworkWinFXTargets>
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be placed in WindowsDesktop Sdk targets?

Copy link
Member Author

Choose a reason for hiding this comment

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

I may be mistaken but I don't see a WindowsDesktop .targets file? I'm going to merge this in and if it should be placed into a different file I'd be happy to do so.

Copy link
Contributor

@Nirmal4G Nirmal4G May 6, 2020

Choose a reason for hiding this comment

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

The Microsoft.NET.Sdk.WindowsDesktop package in WPF repo.

Moved to: dotnet/wpf#2976
Make it optionally disable: #11606

@marcpopMSFT
Copy link
Member

@benvillalobos Is this ready to merge?

@benvillalobos benvillalobos merged commit 28b3115 into dotnet:master May 6, 2020
@sharwell
Copy link
Member

This change broke dotnet/roslyn-sdk's WPF projects...

@KirillOsenkov
Copy link
Member

I'm guessing this will break any project using Sdk="Microsoft.NETFramework.Sdk" and targeting desktop (like net472) and using WPF. MSBuildStructuredLogViewer for example.

Are we aware that this is a massive breaking change?

@KirillOsenkov
Copy link
Member

Ah, I see there's a fix already: https://github.com/dotnet/sdk/pull/12786/files

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.

6 participants