Skip to content

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

@ghost
Copy link

ghost commented Feb 5, 2021

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