diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2023-03-26 18:05:29 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2023-04-09 13:18:55 -0400 |
commit | 8d600e226960a81636137d9bf286c69ab39066ed (patch) | |
tree | 12fe81c44c5db07e528f7d0f12b9a5c0a324e333 /build/common.targets | |
parent | 5d4c733894404d19a3137a3b4d7e5fc015ecda42 (diff) | |
download | SMAPI-8d600e226960a81636137d9bf286c69ab39066ed.tar.gz SMAPI-8d600e226960a81636137d9bf286c69ab39066ed.tar.bz2 SMAPI-8d600e226960a81636137d9bf286c69ab39066ed.zip |
embed debug symbols for Linux/macOS compatibility
This fixes error stack traces not having line numbers on Linux/macOS.
Diffstat (limited to 'build/common.targets')
-rw-r--r-- | build/common.targets | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/build/common.targets b/build/common.targets index 1ead1508..bb13a26a 100644 --- a/build/common.targets +++ b/build/common.targets @@ -14,6 +14,9 @@ repo. It imports the other MSBuild files as needed. <DefineConstants>$(DefineConstants);SMAPI_DEPRECATED</DefineConstants> <DebugSymbols>true</DebugSymbols> + <!--embed symbols for error stack trace line numbers on Linux/macOS: https://github.com/dotnet/runtime/issues/39987--> + <DebugType>embedded</DebugType> + <!--enable nullable annotations, except in .NET Standard 2.0 where they aren't supported--> <Nullable Condition="'$(TargetFramework)' != 'netstandard2.0'">enable</Nullable> <NoWarn Condition="'$(TargetFramework)' == 'netstandard2.0'">$(NoWarn);CS8632</NoWarn> |