Skip to content

Commit ad408e9

Browse files
author
Nick Ficano
committed
fix: add Pack=false to prevent NU5050 duplicate tools/ entries in Arcp.Cli
1 parent aeaa07d commit ad408e9

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

src/Arcp.Cli/Arcp.Cli.fsproj

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@
1111
<Compile Include="Program.fs" />
1212
</ItemGroup>
1313
<ItemGroup>
14-
<!-- PrivateAssets=all prevents NuGet from adding the library's outputs as
15-
separate content items during tool packing. The publish step already
16-
bundles Arcp.dll (and its transitive deps) into tools/net10.0/any/,
17-
so omitting this flag causes NU5050 duplicate-destination errors. -->
14+
<!-- Pack=false + PrivateAssets=all prevents the NuGet pack task from
15+
adding Arcp's bin-output DLLs as *separate* tools/ content items.
16+
The dotnet publish step (which runs inside dotnet pack for tool
17+
projects) already bundles Arcp.dll and its transitive deps into
18+
tools/net10.0/any/, so without these flags the same files appear
19+
twice in the manifest and the pack fails with NU5050. -->
1820
<ProjectReference Include="..\Arcp\Arcp.fsproj">
1921
<PrivateAssets>all</PrivateAssets>
22+
<Pack>false</Pack>
2023
</ProjectReference>
2124
</ItemGroup>
2225
<ItemGroup>

0 commit comments

Comments
 (0)