Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 0 additions & 6 deletions eng/native/naming.props
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,4 @@
<AdditionalSymbolPackageExcludes Condition="'$(LibSuffix)' != ''" Include="%2A%2A\%2A.a;%2A%2A\%2A$(LibSuffix)" />
</ItemGroup>

<!-- arcade is using long name for this property; 'SymbolFileExtension'.
remove this property group when arcade is updated with short name (SymbolsSuffix). -->
<PropertyGroup>
<SymbolFileExtension>$(SymbolsSuffix)</SymbolFileExtension>
</PropertyGroup>

</Project>
17 changes: 14 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,14 @@
Outputs="$(SingleFileHostDestinationPath);$(SingleFileHostSymbolsDestinationPath)"
DependsOnTargets="ResolveProjectReferences"
Condition="'$(RuntimeFlavor)' != 'Mono'">
<Copy SourceFiles="$(SingleFileHostPath);$(SingleFileHostSymbolsPath)" DestinationFiles="$(SingleFileHostDestinationPath);$(SingleFileHostSymbolsPath)" />
<Copy SourceFiles="$(SingleFileHostPath)" DestinationFiles="$(SingleFileHostDestinationPath)" />
<Exec Condition="'$(TargetOS)' == 'windows'"
Command="&quot;$(DotNetTool)&quot; exec @(InjectResourceTool) --bin &quot;$(DacPath)&quot; --image &quot;$(SingleFileHostDestinationPath)&quot; --name MINIDUMP_EMBEDDED_AUXILIARY_PROVIDER" />

<!-- Copy symbols if they exist. We may not have separate symbols if they were not stripped from the native binary itself. -->
<Copy SourceFiles="$(SingleFileHostSymbolsPath)" DestinationFiles="$(SingleFileHostSymbolsDestinationPath)" Condition="Exists('$(SingleFileHostSymbolsPath)')" />
</Target>

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