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' #15790

Closed
wants to merge 1 commit into from

Conversation

marcpopMSFT
Copy link
Member

@marcpopMSFT marcpopMSFT commented Feb 10, 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.

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.

2 participants