Closed as not planned
Closed as not planned
Description
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.