Skip to content

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 requested a review from safern February 2, 2022 09:04
@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.

4 participants