Fix IsPrerelease condition to be aligned with rest of utf8string code (#39511)
authorJan Jahoda <jajahoda@microsoft.com>
Fri, 17 Jul 2020 12:10:15 +0000 (14:10 +0200)
committerGitHub <noreply@github.com>
Fri, 17 Jul 2020 12:10:15 +0000 (14:10 +0200)
Co-authored-by: Jan Jahoda <jajahoda@.microsoft.com>
src/libraries/System.Utf8String.Experimental/src/System.Utf8String.Experimental.csproj

index efe0b61..016238e 100644 (file)
     <Compile Include="$(CoreLibSharedDir)\System\Text\Utf8Span.Searching.cs"
              Link="System\Text\Utf8Span.Searching.cs" />
   </ItemGroup>
-  <ItemGroup Condition="'$(TargetFramework)' == '$(NetCoreAppCurrent)'">
+  <ItemGroup Condition="'$(IsPrerelease)' != 'false' AND '$(TargetFramework)' == '$(NetCoreAppCurrent)'">
     <Compile Include="System\Net\Http\Utf8StringContent.netcoreapp.cs" />
   </ItemGroup>
   <ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0' OR $(TargetFramework.StartsWith('net4'))">