Improve debug output

- use embedded debug information instead of portable pdbs
- always emit debug symbols. The `DebugSymbols` property is kind of bugged (see https://github.com/dotnet/msbuild/issues/2169), but it does have advantages when set
This commit is contained in:
Morilli 2024-04-03 22:38:10 +02:00
parent 1f4a12c6c4
commit 0e892a5f17
1 changed files with 2 additions and 4 deletions

View File

@ -19,16 +19,14 @@
<Nullable>enable</Nullable>
<PlatformTarget>AnyCPU</PlatformTarget>
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
<DebugType>embedded</DebugType>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>portable</DebugType>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<Optimize>false</Optimize>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DebugSymbols>false</DebugSymbols>
<DebugType>portable</DebugType>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<PathMap>$(MSBuildProjectDirectory)=${$(MSBuildProjectName)}/</PathMap>