Paket
Paket copied to clipboard
paket pack does not support AppendTargetFrameworkToOutputPath=false
Description
Running paket pack on a project that has AppendTargetFrameworkToOutputPath set to false tries to look up the output assembly in ${OutputPath}\${TargetFramework} whereas the assembly is compiled into ${OutputPath}
Repro steps
Please provide the steps required to reproduce the problem
- Create a .NET Core class lib and set
AppendTargetFrameworkToOutputPathto false. - Create paket.template file
- Run
paket pack
Expected behavior
Packing works.
Actual behavior
Loading /Users/agross/gw/grossweber/ops/source/Ops.Contracts/Ops.Contracts.csproj
Loading assembly metadata for /Users/agross/gw/grossweber/ops/build/bin/ops-host/bin/net5.0/Ops.Contracts.dll
Total time taken: 0 milliseconds
- Runtime: 1 second
Paket failed with
-> DirectoryNotFoundException: Could not find a part of the path '/Users/agross/gw/grossweber/ops/build/bin/ops-host/bin/net5.0/Ops.Contracts.dll'.
StackTrace:
...
The latest alpha release can handle AppendTargetFrameworkToOutputPath correctly. You could give it a try.
The latest alpha release can handle
AppendTargetFrameworkToOutputPathcorrectly. You could give it a try.
Seems to work fine!