Skip to content

Commit 866f3eb

Browse files
agockeViktorHofer
andauthored
Don't require singlefilehost in host.native (dotnet#79565)
* Don't require singlefilehost in host.native The corehost project currently tries to build the singlefilehost with the embedded DAC, which we can skip if we never built the singlefilehost in the first place. * Update corehost.proj Co-authored-by: Viktor Hofer <[email protected]>
1 parent db6c62e commit 866f3eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/native/corehost/corehost.proj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
@(InjectResourceTool)"
4545
Outputs="$(SingleFileHostDestinationPath);$(SingleFileHostSymbolsDestinationPath)"
4646
DependsOnTargets="ResolveProjectReferences"
47-
Condition="'$(RuntimeFlavor)' != 'Mono'">
47+
Condition="'$(RuntimeFlavor)' != 'Mono' and
48+
Exists('$(SingleFileHostPath)')">
4849
<Copy SourceFiles="$(SingleFileHostPath)" DestinationFiles="$(SingleFileHostDestinationPath)" />
4950
<Exec Condition="'$(TargetOS)' == 'windows'"
5051
Command="&quot;$(DotNetTool)&quot; exec @(InjectResourceTool) --bin &quot;$(DacPath)&quot; --image &quot;$(SingleFileHostDestinationPath)&quot; --name MINIDUMP_EMBEDDED_AUXILIARY_PROVIDER" />

0 commit comments

Comments
 (0)