1234567891011 |
- <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 before .NET 6 and make them errors on later target frameworks.
- -->
- <PropertyGroup>
- <Nullable>enable</Nullable>
- <WarningsAsErrors Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">$(WarningsAsErrors);nullable</WarningsAsErrors>
- <NoWarn Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">$(NoWarn);nullable</NoWarn>
- </PropertyGroup>
- </Project>
|