fix build for netcoreapp3.0 (#39447)
authorEirik Tsarpalis <eirik.tsarpalis@gmail.com>
Fri, 17 Jul 2020 07:01:25 +0000 (08:01 +0100)
committerGitHub <noreply@github.com>
Fri, 17 Jul 2020 07:01:25 +0000 (09:01 +0200)
src/libraries/System.Text.Encodings.Web/src/System.Text.Encodings.Web.csproj

index dc1ab14..126ef92 100644 (file)
@@ -6,9 +6,10 @@
     <ExcludeCurrentNetCoreAppFromPackage>true</ExcludeCurrentNetCoreAppFromPackage>
     <Nullable>enable</Nullable>
   </PropertyGroup>
-  <PropertyGroup>
+  <PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp3.0' ">
+    <DefineConstants>$(DefineConstants),USE_INTERNAL_ACCESSIBILITY</DefineConstants>
     <!-- CS3019: CLS attributes on internal types. Some shared source files are internal in this project. -->
-    <NoWarn Condition="'$(TargetFramework)' == 'netcoreapp3.0'">$(NoWarn);CS3019</NoWarn>
+    <NoWarn>$(NoWarn);CS3019</NoWarn>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="System\Text\Encodings\Web\DefaultJavaScriptEncoder.cs" />