You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set AppendTargetFrameworkToOutputPath=false in my projects because I use a read only source tree and redirect my bin and obj directories to other places. In particular, I add the TFM to my path myself to layout my directories in a way that makes sense for my repo. But I discovered that in setting AppendTargetFrameworkToOutputPath=false, when nuget packs my projects, it malfunctions and causes all assemblies to be added to the lib folder directly instead of under lib\TFM folders.
I set AppendTargetFrameworkToOutputPath=false in my projects because I use a read only source tree and redirect my bin and obj directories to other places. In particular, I add the TFM to my path myself to layout my directories in a way that makes sense for my repo. But I discovered that in setting AppendTargetFrameworkToOutputPath=false, when nuget packs my projects, it malfunctions and causes all assemblies to be added to the lib folder directly instead of under lib\TFM folders.
Repro steps
Define a csproj file with this content:
Then execute these commands:
Expected
No build warnings, and a nuspec file in my obj folder that reveals that two assemblies are copied into the nuget package, like this:
I see the expected behavior when
AppendTargetFrameworkToOutputPath=true
.Actual
The Nuspec file only specified one assembly, without the TFM path:
And the build emitted several warnings stating that the temp.dll should be under a lib\TFM directory.
Version info
The text was updated successfully, but these errors were encountered: