File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments