embed debug symbols for Linux/macOS compatibility in mod build package

This commit is contained in:
Jesse Plamondon-Willard 2023-06-24 11:50:05 -04:00
parent 9dd702a162
commit 445370b75b
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
2 changed files with 5 additions and 1 deletions

View File

@ -416,6 +416,9 @@ The NuGet package is generated automatically in `StardewModdingAPI.ModBuildConfi
when you compile it. when you compile it.
## Release notes ## Release notes
## Upcoming release
* Replaced `.pdb` files with embedded symbols by default. This fixes logged SMAPI errors not having line numbers on Linux/macOS.
### 4.1.0 ### 4.1.0
Released 08 January 2023. Released 08 January 2023.

View File

@ -8,8 +8,9 @@
** Set build options ** Set build options
**********************************************--> **********************************************-->
<PropertyGroup> <PropertyGroup>
<!-- enable line numbers in stack traces --> <!-- enable line numbers in stack traces (needs to embedded for Linux/macOS: https://github.com/dotnet/runtime/issues/39987) -->
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<DebugType>embedded</DebugType>
<!-- don't create the 'refs' folder (which isn't useful for mods) --> <!-- don't create the 'refs' folder (which isn't useful for mods) -->
<ProduceReferenceAssembly>false</ProduceReferenceAssembly> <ProduceReferenceAssembly>false</ProduceReferenceAssembly>