Browse Source
The Nullable annotations on netstandard2.0 are incomplete and incorrect in places. Ignore nullable warnings on netstandard2.0 and make them errors on later target frameworks.pull/7172/head
6 changed files with 17 additions and 8 deletions
@ -0,0 +1,11 @@ |
|||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|||
<!-- |
|||
The Nullable annotations on netstandard2.0 are incomplete and incorrect in places. Ignore |
|||
nullable warnings on netstandard2.0 and make them errors on later target frameworks. |
|||
--> |
|||
<PropertyGroup> |
|||
<Nullable>enable</Nullable> |
|||
<WarningsAsErrors Condition="'$(TargetFramework)' != 'netstandard2.0'">$(WarningsAsErrors);nullable</WarningsAsErrors> |
|||
<NoWarn Condition="'$(TargetFramework)' == 'netstandard2.0'">$(NoWarn);nullable</NoWarn> |
|||
</PropertyGroup> |
|||
</Project> |
|||
Loading…
Reference in new issue