diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/common.targets | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build/common.targets b/build/common.targets index 258b48f2..c227190a 100644 --- a/build/common.targets +++ b/build/common.targets @@ -5,7 +5,10 @@ <Product>SMAPI</Product> <LangVersion>latest</LangVersion> <AssemblySearchPaths>$(AssemblySearchPaths);{GAC}</AssemblySearchPaths> - <Nullable>enable</Nullable> + + <!--enable nullable annotations, except in .NET Standard 2.0 where they aren't supported--> + <Nullable Condition="'$(TargetFramework)' == 'net5.0'">enable</Nullable> + <NoWarn Condition="'$(TargetFramework)' != 'net5.0'">$(NoWarn);CS8632</NoWarn> <!--set platform--> <DefineConstants Condition="$(OS) == 'Windows_NT'">$(DefineConstants);SMAPI_FOR_WINDOWS</DefineConstants> |