Skip to content

Commit aeaa07d

Browse files
author
Nick Ficano
committed
fix: add PrivateAssets=all to Arcp ProjectReference in Arcp.Cli
When packing a PackAsTool project, NuGet includes project reference outputs as separate content items AND via the internal dotnet publish step, causing NU5050 duplicate-destination errors for Arcp.dll/pdb/xml. PrivateAssets=all tells the pack target not to add the project reference outputs as separate content items; the publish output already bundles them into tools/net10.0/any/ correctly.
1 parent da90cbe commit aeaa07d

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/Arcp.Cli/Arcp.Cli.fsproj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@
1111
<Compile Include="Program.fs" />
1212
</ItemGroup>
1313
<ItemGroup>
14-
<ProjectReference Include="..\Arcp\Arcp.fsproj" />
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. -->
18+
<ProjectReference Include="..\Arcp\Arcp.fsproj">
19+
<PrivateAssets>all</PrivateAssets>
20+
</ProjectReference>
1521
</ItemGroup>
1622
<ItemGroup>
1723
<PackageReference Include="Argu" />

0 commit comments

Comments
 (0)