Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix missing symbols for singlefilehost
  • Loading branch information
elinor-fung committed Aug 2, 2022
commit 868b624fb09221f711530aca570d009690e70232
14 changes: 11 additions & 3 deletions src/native/corehost/corehost.proj
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,19 @@
<Target Name="PrepareSingleFileHostWithEmbeddedDacPrereqs">
<PropertyGroup>
<SingleFileHostPath>$(CoreCLRArtifactsPath)/corehost/singlefilehost$(ExeSuffix)</SingleFileHostPath>
<SingleFileHostSymbolsPath>$(CoreCLRArtifactsPath)/corehost/PDB/singlefilehost$(SymbolsSuffix)</SingleFileHostSymbolsPath>
<DacPath>$(CoreCLRArtifactsPath)/mscordaccore$(LibSuffix)</DacPath>
<SingleFileHostDestinationPath>$(DotNetHostBinDir)/singlefilehost$(ExeSuffix)</SingleFileHostDestinationPath>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetOS)' == 'windows'">
<!-- Symbols for Windows are in a PDB subdirectory -->
<SingleFileHostSymbolsPath>$(CoreCLRArtifactsPath)/corehost/PDB/singlefilehost$(SymbolsSuffix)</SingleFileHostSymbolsPath>
<SingleFileHostSymbolsDestinationPath>$(DotNetHostBinDir)/PDB/singlefilehost$(SymbolsSuffix)</SingleFileHostSymbolsDestinationPath>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetOS)' != 'windows'">
<!-- Symbols for non-Windows are next to the binary -->
<SingleFileHostSymbolsPath>$(CoreCLRArtifactsPath)/corehost/singlefilehost$(SymbolsSuffix)</SingleFileHostSymbolsPath>
<SingleFileHostSymbolsDestinationPath>$(DotNetHostBinDir)/singlefilehost$(SymbolsSuffix)</SingleFileHostSymbolsDestinationPath>
</PropertyGroup>
</Target>

<!--
Expand All @@ -37,11 +45,11 @@
Outputs="$(SingleFileHostDestinationPath);$(SingleFileHostSymbolsDestinationPath)"
DependsOnTargets="ResolveProjectReferences"
Condition="'$(RuntimeFlavor)' != 'Mono'">
<Copy SourceFiles="$(SingleFileHostPath);$(SingleFileHostSymbolsPath)" DestinationFiles="$(SingleFileHostDestinationPath);$(SingleFileHostSymbolsPath)" />
<Copy SourceFiles="$(SingleFileHostPath);$(SingleFileHostSymbolsPath)" DestinationFiles="$(SingleFileHostDestinationPath);$(SingleFileHostSymbolsDestinationPath)" />
<Exec Condition="'$(TargetOS)' == 'windows'"
Command="&quot;$(DotNetTool)&quot; exec @(InjectResourceTool) --bin &quot;$(DacPath)&quot; --image &quot;$(SingleFileHostDestinationPath)&quot; --name MINIDUMP_EMBEDDED_AUXILIARY_PROVIDER" />
</Target>

<Target Name="PrepareSingleFileHostWithEmbeddedDac"
DependsOnTargets="PrepareSingleFileHostWithEmbeddedDacPrereqs;PrepareSingleFileHostWithEmbeddedDacCore"
AfterTargets="Build"/>
Expand Down