-
Notifications
You must be signed in to change notification settings - Fork 763
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
Correct build transitive targets location #4773
Conversation
While this change does fix the issue, I think that the root cause that should be fixed is the logic that is adding the That is what was causing this issue, since that minimum supported TFM is now net8.0, meaning in net8.0 we are emitting the placeholder, causing our net6.0 props and targets to no longer get imported. My suggestion is to disable the logic putting the placeholders all together for Core, and only keeping it for net462 which is the only place where we want it. That way, we will solve this issue, but we would also make it so that any future packages that want to add their own props and targets won't come into this pitfall. Does that make sense? |
We should do more cleanup in general for that target as it was designed for a very different purpose than what it is doing now, but essentially I'm suggesting that perhaps just deleting extensions/eng/MSBuild/Packaging.targets Lines 67 to 75 in 3b57f78
And extensions/eng/MSBuild/Packaging.targets Lines 79 to 85 in 3b57f78
will also fix this issue, and it will also be a step closer to the right direction we want. It would also future proof so that we don't have to go through the same issue each year when we change the minimum supported TFM. |
This comment was marked as resolved.
This comment was marked as resolved.
It does, it's just not in the package :). Setting that property |
I had a look but I don't think we can remove this infra without making substantial manual work it automates. It essentially generates the "not supported" warnings for all packages that we ship. If we remove this infra we'll have to create all these files manually, and that'd be a significant overhead. I added some comments that would hopefully help removing the confusion I had. The newly added target we'll alert us when we bump the |
I'm merging this to unblock the build of the dotnet/extensions-samples repo |
That's fine, can we still log an issue to track the cleanup of that infrastructure then? |
Filed #4834. Feel free to update the description there |
Resolves #4772
Microsoft Reviewers: Open in CodeFlow