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

Avoid passing TargetFramework as a global property when packing for projects that aren't multi-targeted #12323

Closed
dsplaisted opened this issue Dec 15, 2022 · 4 comments

Comments

@dsplaisted
Copy link

In dotnet/designs#281, we are proposing that the TargetFramework will be included in the output path if it was set as a global property or if the project was multi-targeted. Otherwise, it will not be part of the output path.

This causes an issue when doing a NuGet pack command, as the _WalkEachTargetPerFramework target runs the _GetBuildOutputFilesWithTfm target for each TargetFramework. This means in this inner build the TargetFramework will be a global property, even if there is only one.

To fix this, the NuGet pack logic would need to change so that if there is only one target framework, it does not pass the TargetFramework global property in this case.

@ghost
Copy link

ghost commented Dec 16, 2022

Issue is missing Type label, remember to add a Type label

@ghost ghost added the missing-required-type The required type label is missing. label Dec 16, 2022
@erdembayar erdembayar added Type:DCR Design Change Request Product:dotnet.exe Partner:DotNet Functionality:Pack and removed missing-required-type The required type label is missing. labels Dec 19, 2022
@aortiz-msft
Copy link
Contributor

@dsplaisted - Could you please add us to the discussion for the design referenced above?

@aortiz-msft aortiz-msft added the WaitingForCustomer Applied when a NuGet triage person needs more info from the OP label Dec 29, 2022
@dsplaisted
Copy link
Author

dsplaisted commented Jan 4, 2023

@aortiz-msft I think your team has been part of the discussion. This was the topic in two partner sync meetings so far, and I believe @nkolev92 was in and contributed to both.

EDIT: Note that this specific change to NuGet wasn't discussed in those meetings, I discovered the issue afterwards when working on the implementation.

@ghost ghost added WaitingForClientTeam Customer replied, needs attention from client team. Do not apply this label manually. and removed WaitingForCustomer Applied when a NuGet triage person needs more info from the OP labels Jan 4, 2023
@kartheekp-ms kartheekp-ms removed the WaitingForClientTeam Customer replied, needs attention from client team. Do not apply this label manually. label Jan 6, 2023
@jeffkl
Copy link
Contributor

jeffkl commented Jan 12, 2023

Team Triage: Per offline discussion, this change might not be needed. Feel free to re-activate if you feel otherwise.

@jeffkl jeffkl closed this as not planned Won't fix, can't repro, duplicate, stale Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants