Skip to content

Commit

Permalink
Added pdb generation 2 (#589)
Browse files Browse the repository at this point in the history
* Exclude pdb copy from NuGet packages for thin
* Thin now includes the debug symbols as portable
* Always exclude the .dll/pdb/xml files of the dependencies after Pack
  • Loading branch information
Aragas authored Mar 3, 2024
1 parent 14eebba commit 03a8be1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Harmony/Harmony.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
<Configurations>DebugThin;DebugFat;ReleaseThin;ReleaseFat</Configurations>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<CopyDebugSymbolFilesFromPackages>true</CopyDebugSymbolFilesFromPackages>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>

Expand All @@ -61,7 +60,7 @@

<PropertyGroup Condition="'$(Configuration)'=='ReleaseThin'">
<Optimize>true</Optimize>
<DebugType>embedded</DebugType>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<ILRepackTargetsFile>$(SolutionDir)ILRepack.targets</ILRepackTargetsFile>
<ClearOutputDirectory>True</ClearOutputDirectory>
Expand All @@ -73,6 +72,7 @@
<DebugSymbols>true</DebugSymbols>
<ILRepackTargetsFile>$(SolutionDir)ILRepack.targets</ILRepackTargetsFile>
<ClearOutputDirectory>True</ClearOutputDirectory>
<CopyDebugSymbolFilesFromPackages>true</CopyDebugSymbolFilesFromPackages>
</PropertyGroup>

<ItemGroup Condition="'$(Configuration)'=='DebugThin' Or '$(Configuration)'=='ReleaseThin'">
Expand Down Expand Up @@ -162,10 +162,10 @@
</Target>

<Target Name="RemoveExtraDlls" AfterTargets="Pack">
<ItemGroup Condition="'$(Configuration)'=='DebugThin' Or '$(Configuration)'=='ReleaseThin'">
<ExtraDlls Include="$(MSBuildThisFileDirectory)bin\**\MonoMod.*.dll" />
<ExtraDlls Include="$(MSBuildThisFileDirectory)bin\**\Mono.*.dll" />
<ExtraDlls Include="$(MSBuildThisFileDirectory)bin\**\System.*.dll" />
<ItemGroup>
<ExtraDlls Include="$(MSBuildThisFileDirectory)bin\**\MonoMod.*.*" />
<ExtraDlls Include="$(MSBuildThisFileDirectory)bin\**\Mono.*.*" />
<ExtraDlls Include="$(MSBuildThisFileDirectory)bin\**\System.*.*" />
</ItemGroup>
<Delete Files="@(ExtraDlls)" />
</Target>
Expand Down

0 comments on commit 03a8be1

Please sign in to comment.