diff options
author | Andy Gocke <angocke@microsoft.com> | 2022-07-18 21:27:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-18 21:27:40 +0300 |
commit | c4277b99ef2b623dca6ed2c1427890855e3deced (patch) | |
tree | f516a51c1dc13f6ad52fa666ca55fb5efd8e51a3 /eng/liveBuilds.targets | |
parent | 187abaaf59eace91833e8264e1d4eae6ff17d53f (diff) |
Always use live host (#71725)
Eliminates package dependency on the host during build and test. This change adds steps to various build
pipelines to build the host where they wouldn't before. It also stops us from building the Microsoft.NETCore.{DotnetHost,DotNetHostPolicy,DotNetHostResolver}, since those weren't necessary beyond this internal usage.
Diffstat (limited to 'eng/liveBuilds.targets')
-rw-r--r-- | eng/liveBuilds.targets | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/eng/liveBuilds.targets b/eng/liveBuilds.targets index fcda36b713b..be20c6f2951 100644 --- a/eng/liveBuilds.targets +++ b/eng/liveBuilds.targets @@ -118,6 +118,16 @@ <MonoIncludeFiles Include="$(MonoArtifactsPath)\include\**\*.*" /> </ItemGroup> + <!-- Host files. Mobile uses a different hosting model, so we don't include the .NET host components there. --> + <ItemGroup Condition="'$(TargetsMobile)' != 'true' and Exists('$(DotNetHostBinDir)')"> + <RuntimeFiles Include="$(DotNetHostBinDir)\$(LibPrefix)hostpolicy$(LibSuffix)"> + <IsNative>true</IsNative> + </RuntimeFiles> + <RuntimeFiles Include="$(DotNetHostBinDir)\$(LibPrefix)hostfxr$(LibSuffix)"> + <IsNative>true</IsNative> + </RuntimeFiles> + </ItemGroup> + <Error Condition="'@(RuntimeFiles)' == ''" Text="The '$(RuntimeFlavor)' subset must be built before building this project." /> </Target> |