add conditinal include for ThreadPool assembly in netcoreapp (dotnet/corefx#34865)
authorWraith2 <Wraith2@users.noreply.github.com>
Sat, 26 Jan 2019 01:50:38 +0000 (01:50 +0000)
committerStephen Toub <stoub@microsoft.com>
Sat, 26 Jan 2019 01:50:38 +0000 (20:50 -0500)
Commit migrated from https://github.com/dotnet/corefx/commit/65313c5b64fc20faa8f80490727c113c4531fe82

src/libraries/System.Threading.Channels/src/System.Threading.Channels.csproj

index fe4ceb1..63db322 100644 (file)
@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
   <PropertyGroup>
     <ProjectGuid>{AAADA5D3-CF64-4E9D-943C-EFDC006D6366}</ProjectGuid>
     <RootNamespace>System.Threading.Channels</RootNamespace>
@@ -39,7 +39,7 @@
     <Reference Include="System.Runtime" />
     <Reference Include="System.Runtime.Extensions" />
     <Reference Include="System.Threading" />
-    <Reference Include="System.Threading.ThreadPool" />
+    <Reference Include="System.Threading.ThreadPool"  Condition="'$(TargetGroup)' == 'netcoreapp'" />
     <Reference Include="System.Threading.Tasks" />
     <Reference Include="System.Threading.Tasks.Extensions" />
   </ItemGroup>