Skip to content

Commit

Permalink
[host] Copy hostfxr and hostpolicy for Mono also, if !mobile (#73633)
Browse files Browse the repository at this point in the history
Fixes the mono "HelloWorld" sample (src/mono/samples/HelloWorld) on
desktop platforms
  • Loading branch information
lambdageek authored Aug 9, 2022
1 parent 77b39a5 commit aee9013
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libraries/externals.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@
AfterTargets="AfterResolveReferences"
Condition="'$(RuntimeFlavor)' == 'Mono'">
<ItemGroup>
<!-- copy the host files to make the desktop samples work -->
<RuntimeFiles Include="@(HostFxrFile)" Condition="Exists('@(HostFxrFile)') and '$(TargetsMobile)' != 'true'"/>
<RuntimeFiles Include="@(HostPolicyFile)" Condition="Exists('@(HostPolicyFile)') and '$(TargetsMobile)' != 'true'" />
<ReferenceCopyLocalPaths Include="@(RuntimeFiles)" />
<!-- Setup runtime pack native. -->
<ReferenceCopyLocalPaths Include="@(MonoCrossFiles)"
Expand Down

0 comments on commit aee9013

Please sign in to comment.