Filter apphost rather than trying to have nuget suppress it
authorEric St. John <ericstj@microsoft.com>
Wed, 23 Jan 2019 20:52:35 +0000 (12:52 -0800)
committerEric St. John <ericstj@microsoft.com>
Wed, 23 Jan 2019 20:52:35 +0000 (12:52 -0800)
NuGet wasn't honoring the Exclude=all across runtime dependencies
but I can make this simpler by just telling depproj filtering
target to remove the file.

Commit migrated from https://github.com/dotnet/corefx/commit/16e45eea9a85c206ca7ec6b4ebc18a4a5187cd55

src/libraries/external/runtime/runtime.depproj

index 2705e78..8ee1737 100644 (file)
     <PackageReference Include="runtime.native.System.Data.SqlClient.sni" Version="$(RuntimeNativeSystemDataSqlClientSniPackageVersion)" />
     <PackageReference Include="Microsoft.NETCore.DotNetHost" Version="$(MicrosoftNETCoreDotNetHostPackageVersion)" />
     <PackageReference Include="Microsoft.NETCore.DotNetHostPolicy" Version="$(MicrosoftNETCoreDotNetHostPolicyPackageVersion)" />
-    <!-- DotNetAppHost is a transitive dependency of DotNetHostPolicy.
-         We do not need apphost.exe and the 3.0 SDK will actually remove it.
+    <!-- We do not need apphost.exe and the 3.0 SDK will actually remove it.
          Exclude here so that when building with the 2.x SDK we don't place it in the test shared framework.
          This can be removed once we have a new SDK -->
-    <PackageReference Include="Microsoft.NETCore.DotNetAppHost" Version="$(MicrosoftNETCoreDotNetHostPolicyPackageVersion)" ExcludeAssets="All" />
+    <FileToExclude Include="apphost" />
   </ItemGroup>
 
   <ItemGroup>