Skip to content

Commit

Permalink
Fix packaging of PDBs for host binaries (dotnet#38589)
Browse files Browse the repository at this point in the history
  • Loading branch information
elinor-fung authored Jun 30, 2020
1 parent 4fdf9ff commit 60ca9da
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/installer/pkg/projects/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,15 @@
<File Include="@(SiblingSymbolFile)" />
</ItemGroup>

<!-- On Windows, native symbols are installed to a PDB subdirectory -->
<ItemGroup>
<WindowsSymbolFileInSubdirectory Include="@(WindowsSymbolFile -> '%(RootDir)%(Directory)PDB\%(Filename)%(Extension)')" />
<ExistingWindowsSymbolFileInSubdirectory Include="@(WindowsSymbolFileInSubdirectory)" Condition="Exists('%(Identity)')" />
<File Include="@(ExistingWindowsSymbolFileInSubdirectory)">
<IsSymbolFile>true</IsSymbolFile>
</File>
</ItemGroup>

<PropertyGroup>
<NeedsPlaceholderPdb Condition="'@(ExistingNonWindowsSymbolFile)' != '' and '@(ExistingWindowsSymbolFile)' == ''">true</NeedsPlaceholderPdb>
</PropertyGroup>
Expand Down

0 comments on commit 60ca9da

Please sign in to comment.