Skip to content

Commit 0867454

Browse files
committed
Fix duplicate symbol file while packing
To fix the following build error: ``` /runtime/.dotnet/sdk/9.0.100-preview.7.24407.12/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): error NU5118: Warning As Error: File '/runtime/artifacts/bin/coreclr/linux.loongarch64.Release/IL/System.Private.CoreLib.pdb' is not added because the package already contains file 'runtimes/linux-loongarch64/lib/net9.0/System.Private.CoreLib.pdb' [/runtime/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.sfxproj] ```
1 parent ba5d8db commit 0867454

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/coreclr/Directory.Build.targets

+2-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@
2222
Inputs="@(_DebugSymbolToMove)"
2323
Outputs="@(_DebugSymbolToMove->Metadata('Destination'))"
2424
Condition="'$(_DebugSymbolsProduced)' == 'true'">
25-
<Copy SourceFiles="@(_DebugSymbolToMove)"
26-
DestinationFiles="@(_DebugSymbolToMove->Metadata('Destination'))"
27-
UseHardlinksIfPossible="false" />
25+
<Move SourceFiles="@(_DebugSymbolToMove)"
26+
DestinationFiles="@(_DebugSymbolToMove->Metadata('Destination'))" />
2827
</Target>
2928

3029
<!-- Import targets here to have TargetPath and other macros defined. Limit to CoreLib. -->

0 commit comments

Comments
 (0)