Skip to content

Commit

Permalink
Bring back CopyOutputSymbolsToPublishDirectory
Browse files Browse the repository at this point in the history
I accidentally removed this property from AOT compilation
when adding support for Mac dsym bundles. This change re-enables
support for suppressing debugging symbols in the output.

Fixes #92188
  • Loading branch information
agocke authored and github-actions committed Sep 20, 2023
1 parent 49bf70a commit 90842b7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@
<!-- replace apphost with binary we generated during native compilation -->
<Delete Files="$(PublishDir)\$(TargetName)$(NativeBinaryExt)" />
<Copy SourceFiles="$(NativeOutputPath)$(TargetName)$(NativeBinaryExt)" DestinationFolder="$(PublishDir)" />
</Target>

<Target Name="_CopyAotSymbols" AfterTargets="CopyNativeBinary"
Condition="'$(CopyOutputSymbolsToPublishDirectory)' == 'true'">
<!-- dotnet CLI produces managed debug symbols, which we will delete and copy native symbols instead -->
<Delete Files="$(PublishDir)\$(TargetName).pdb" />

Expand Down

0 comments on commit 90842b7

Please sign in to comment.