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

Revert 'Opt into IncludePackageReferencesDuringMarkupCompilation' #15695

Merged
merged 1 commit into from
Feb 9, 2021

Conversation

sfoslund
Copy link
Member

@sfoslund sfoslund commented Feb 5, 2021

Revert #15465

https://developercommunity2.visualstudio.com/t/wpf-app-may-fail-to-build-or-publish/1334426

Description

Publishing self contained WPF projects is failing as a result of WPF’s new source generator/package reference support, which the SDK opted into by setting the IncludePackageReferencesDuringMarkupCompilation flag. The fix is to revert this property change.

Customer Impact

Users are unable to publish some WPF projects self contained. With this fix publishing will succeed and users will still be able to use new WPF source generator support but will have to opt in manually.

Background

The WPF build process creates a temporary project which is built in order to do the markup compilation. In order to support source generators (among other scenarios), we enabled a mode that would import more of the .props and .targets files than the original project imported. However, since the temporary project has a different name, this breaks logic that depends on MSBuild properties that include the project name, such as MSBuildProjectName.

Regression?

Yes

Risk

Low

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@sfoslund
Copy link
Member Author

sfoslund commented Feb 9, 2021

@dsplaisted can I get a review here so we can merge soon?

Copy link
Member

@dsplaisted dsplaisted left a comment

Choose a reason for hiding this comment

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

Wait to merge until this is discussed in tactics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants