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

Fix TargetFramework package via multiTargeting and binplace import #8421

Merged
merged 4 commits into from
Feb 2, 2022

Conversation

ViktorHofer
Copy link
Member

@ViktorHofer ViktorHofer commented Feb 2, 2022

Renaming and migrating the package from an msbuild sdk package to a normal nuget package broke the imports and the evaluation order which I'm fixing with this PR. Tested the change locally.

The package's props and targets files need to be imported in both the outer and the inner build. Hence, adding a buildMultiTargeting folder that redirects to the build folder.

Also the EnableBinPlace property is now evaluated sooner than expected and hence some properties in dotnet/runtime aren't yet set which this property depends on. Inline the condition into the target so that it runs later and condition the overall import of the BinPlace.targets file via the existing condition.

To double check:

The package's props and targets files need to be imported in both the outer and the inner build. Hence, adding a buildMultiTargeting folder that redirects to the build folder.
@ViktorHofer ViktorHofer self-assigned this Feb 2, 2022
@ViktorHofer ViktorHofer changed the title Fix TargetFramework package via multiTargeting Fix TargetFramework package via multiTargeting and binplace import Feb 2, 2022
@ViktorHofer
Copy link
Member Author

@akoeplinger in case you're already working, could you please approve this PR for me so that I don't have to wait until Redmond folks are up? 🙏

@ViktorHofer ViktorHofer merged commit 82039f3 into main Feb 2, 2022
@ViktorHofer ViktorHofer deleted the ViktorHofer-patch-1 branch February 2, 2022 11:39
Copy link
Member

@safern safern left a comment

Choose a reason for hiding this comment

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

LGTM

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.

3 participants