diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-04-07 22:19:48 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-04-07 22:19:48 -0400 |
commit | 238045ba9c5937f684cad3c55a8f9b9c2733e45f (patch) | |
tree | 97e32e6b0f1ce1d6b7dc40587d29b63d01bbd123 /build | |
parent | df955c0d3e0110be0893082de0c82187de63d9d2 (diff) | |
download | SMAPI-238045ba9c5937f684cad3c55a8f9b9c2733e45f.tar.gz SMAPI-238045ba9c5937f684cad3c55a8f9b9c2733e45f.tar.bz2 SMAPI-238045ba9c5937f684cad3c55a8f9b9c2733e45f.zip |
reverse mod build package migration to .NET 5 (#837)
The migrated package didn't work consistently in VIsual Studio, so this suppresses nullable annotations in .NET Standard instead.
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> |