Skip to content

Commit 02130a3

Browse files
Cherry-pick upstream PR rwmt#800: normalize stack trace file paths
From rwmt#800 (commit 3ff1ab9): - Use PathMap compiler option to shorten stack trace paths
1 parent a04b76a commit 02130a3

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

Source/Client/Multiplayer.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@
6464
<ModOutputPath>..\..\</ModOutputPath>
6565
</PropertyGroup>
6666

67+
<PropertyGroup Label="Normalise stack trace file locations">
68+
<PathMap>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)'))=$(AssemblyName)/</PathMap>
69+
</PropertyGroup>
70+
6771
<Target Name="CopyToRimworld" AfterTargets="Build">
6872
<Copy SourceFiles="bin\Multiplayer.dll" DestinationFiles="$(ModOutputPath)\AssembliesCustom\Multiplayer.dll" />
6973
<Copy SourceFiles="bin\Multiplayer.pdb" DestinationFiles="$(ModOutputPath)\AssembliesCustom\Multiplayer.pdb" />

Source/Common/Common.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,7 @@
2727
</PropertyGroup>
2828
</Target>
2929

30+
<PropertyGroup Label="Normalise stack trace file locations">
31+
<PathMap>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)'))=$(AssemblyName)/</PathMap>
32+
</PropertyGroup>
3033
</Project>

Source/MultiplayerLoader/MultiplayerLoader.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,7 @@
3131
</PropertyGroup>
3232
</Target>
3333

34+
<PropertyGroup Label="Normalise stack trace file locations">
35+
<PathMap>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)'))=$(AssemblyName)/</PathMap>
36+
</PropertyGroup>
3437
</Project>

0 commit comments

Comments
 (0)