diff --git a/BizHawk.Common/AWEMemoryStream.cs b/BizHawk.Common/AWEMemoryStream.cs index c93d64e56a..92fa0c3b59 100644 --- a/BizHawk.Common/AWEMemoryStream.cs +++ b/BizHawk.Common/AWEMemoryStream.cs @@ -1,3 +1,5 @@ +#nullable disable + using System; using System.IO; using System.Collections.Generic; diff --git a/BizHawk.Common/BinaryQuickSerializer.cs b/BizHawk.Common/BinaryQuickSerializer.cs index 16da8bc9d4..c8063be9fd 100644 --- a/BizHawk.Common/BinaryQuickSerializer.cs +++ b/BizHawk.Common/BinaryQuickSerializer.cs @@ -1,4 +1,6 @@ -using System; +#nullable disable + +using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.IO; diff --git a/BizHawk.Common/Bit.cs b/BizHawk.Common/Bit.cs index 7d9ffe3619..c891722587 100644 --- a/BizHawk.Common/Bit.cs +++ b/BizHawk.Common/Bit.cs @@ -1,3 +1,5 @@ +#nullable disable + using System.Diagnostics; namespace BizHawk.Common diff --git a/BizHawk.Common/BitReverse.cs b/BizHawk.Common/BitReverse.cs index df8373473b..9e803f00c1 100644 --- a/BizHawk.Common/BitReverse.cs +++ b/BizHawk.Common/BitReverse.cs @@ -1,4 +1,6 @@ -namespace BizHawk.Common +#nullable disable + +namespace BizHawk.Common { public static class BitReverse { diff --git a/BizHawk.Common/BizHawk.Common.csproj b/BizHawk.Common/BizHawk.Common.csproj index 2f67706019..2b70b478f7 100644 --- a/BizHawk.Common/BizHawk.Common.csproj +++ b/BizHawk.Common/BizHawk.Common.csproj @@ -1,9 +1,10 @@  + true ../output/dll - netstandard2.0 + netstandard2.0;netcoreapp3.1 diff --git a/BizHawk.Common/Buffer.cs b/BizHawk.Common/Buffer.cs index 0125d59203..98c464a5b7 100644 --- a/BizHawk.Common/Buffer.cs +++ b/BizHawk.Common/Buffer.cs @@ -1,3 +1,5 @@ +#nullable disable + using System; using System.Runtime.InteropServices; diff --git a/BizHawk.Common/CRC32.cs b/BizHawk.Common/CRC32.cs index 564f63fe7b..84807cee87 100644 --- a/BizHawk.Common/CRC32.cs +++ b/BizHawk.Common/CRC32.cs @@ -1,4 +1,6 @@ -namespace BizHawk.Common +#nullable disable + +namespace BizHawk.Common { // we could get a little list of crcs from here and make it clear which crc this class was for, and expose others // http://www.ross.net/crc/download/crc_v3.txt diff --git a/BizHawk.Common/Colors.cs b/BizHawk.Common/Colors.cs index 265aa50933..424e7af9f2 100644 --- a/BizHawk.Common/Colors.cs +++ b/BizHawk.Common/Colors.cs @@ -1,4 +1,6 @@ -namespace BizHawk.Common +#nullable disable + +namespace BizHawk.Common { public static class Colors { diff --git a/BizHawk.Common/CustomCollections.cs b/BizHawk.Common/CustomCollections.cs index 67d8cfb023..e65253fc41 100644 --- a/BizHawk.Common/CustomCollections.cs +++ b/BizHawk.Common/CustomCollections.cs @@ -1,4 +1,6 @@ -using System; +#nullable disable + +using System; using System.Collections; using System.Collections.Generic; using System.Linq; diff --git a/BizHawk.Common/DeepEquality.cs b/BizHawk.Common/DeepEquality.cs index 16cec2672c..9922bb3096 100644 --- a/BizHawk.Common/DeepEquality.cs +++ b/BizHawk.Common/DeepEquality.cs @@ -1,4 +1,6 @@ -using System; +#nullable disable + +using System; using System.Collections.Generic; using System.Linq; using System.Reflection; diff --git a/BizHawk.Common/DescribableEnumConverter.cs b/BizHawk.Common/DescribableEnumConverter.cs index 73dd8e4e85..3eb428ac7c 100644 --- a/BizHawk.Common/DescribableEnumConverter.cs +++ b/BizHawk.Common/DescribableEnumConverter.cs @@ -1,4 +1,6 @@ -using System; +#nullable disable + +using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; diff --git a/BizHawk.Common/Extensions/BufferExtensions.cs b/BizHawk.Common/Extensions/BufferExtensions.cs index d47680b5b0..26c59877ee 100644 --- a/BizHawk.Common/Extensions/BufferExtensions.cs +++ b/BizHawk.Common/Extensions/BufferExtensions.cs @@ -1,4 +1,6 @@ -using System; +#nullable disable + +using System; using System.Globalization; using System.IO; using System.Text; diff --git a/BizHawk.Common/Extensions/CollectionExtensions.cs b/BizHawk.Common/Extensions/CollectionExtensions.cs index fb3763a403..61ff285f06 100644 --- a/BizHawk.Common/Extensions/CollectionExtensions.cs +++ b/BizHawk.Common/Extensions/CollectionExtensions.cs @@ -1,4 +1,6 @@ -using System; +#nullable disable + +using System; using System.Collections.Generic; namespace BizHawk.Common.CollectionExtensions diff --git a/BizHawk.Common/Extensions/IOExtensions.cs b/BizHawk.Common/Extensions/IOExtensions.cs index d075dc01d4..e8be70fd1d 100644 --- a/BizHawk.Common/Extensions/IOExtensions.cs +++ b/BizHawk.Common/Extensions/IOExtensions.cs @@ -1,4 +1,6 @@ -using System; +#nullable disable + +using System; using System.IO; using System.Text; diff --git a/BizHawk.Common/Extensions/NumberExtensions.cs b/BizHawk.Common/Extensions/NumberExtensions.cs index 6484a15fe3..de6eb56362 100644 --- a/BizHawk.Common/Extensions/NumberExtensions.cs +++ b/BizHawk.Common/Extensions/NumberExtensions.cs @@ -1,4 +1,6 @@ -using System; +#nullable disable + +using System; using System.Linq; namespace BizHawk.Common.NumberExtensions diff --git a/BizHawk.Common/Extensions/ReflectionExtensions.cs b/BizHawk.Common/Extensions/ReflectionExtensions.cs index 82733cc009..99c02f0507 100644 --- a/BizHawk.Common/Extensions/ReflectionExtensions.cs +++ b/BizHawk.Common/Extensions/ReflectionExtensions.cs @@ -1,4 +1,6 @@ -using System; +#nullable disable + +using System; using System.Linq; using System.Collections.Generic; using System.ComponentModel; diff --git a/BizHawk.Common/Extensions/StringExtensions.cs b/BizHawk.Common/Extensions/StringExtensions.cs index 17e0845ef2..2e96c3f7e9 100644 --- a/BizHawk.Common/Extensions/StringExtensions.cs +++ b/BizHawk.Common/Extensions/StringExtensions.cs @@ -1,4 +1,6 @@ -using System; +#nullable disable + +using System; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/BizHawk.Common/HawkFile.cs b/BizHawk.Common/HawkFile.cs index 42ccc0b2d0..ecec97a69c 100644 --- a/BizHawk.Common/HawkFile.cs +++ b/BizHawk.Common/HawkFile.cs @@ -1,4 +1,6 @@ -using System; +#nullable disable + +using System; using System.Collections.Generic; using System.IO; using System.Linq; diff --git a/BizHawk.Common/IImportResolver.cs b/BizHawk.Common/IImportResolver.cs index d23da7dcbf..92f22752bd 100644 --- a/BizHawk.Common/IImportResolver.cs +++ b/BizHawk.Common/IImportResolver.cs @@ -1,4 +1,6 @@ -using System; +#nullable disable + +using System; using System.Collections.Generic; using System.IO; using System.Linq; diff --git a/BizHawk.Common/IMonitor.cs b/BizHawk.Common/IMonitor.cs index 7b287f9ea2..1598c4b235 100644 --- a/BizHawk.Common/IMonitor.cs +++ b/BizHawk.Common/IMonitor.cs @@ -1,4 +1,6 @@ -using System; +#nullable disable + +using System; namespace BizHawk.Common { diff --git a/BizHawk.Common/Log.cs b/BizHawk.Common/Log.cs index 356f121cb7..be6a88e1e0 100644 --- a/BizHawk.Common/Log.cs +++ b/BizHawk.Common/Log.cs @@ -1,4 +1,6 @@ -using System; +#nullable disable + +using System; using System.Collections.Generic; using System.IO; diff --git a/BizHawk.Common/OSTailoredCode.cs b/BizHawk.Common/OSTailoredCode.cs index f2188f05b9..5afd9a8117 100644 --- a/BizHawk.Common/OSTailoredCode.cs +++ b/BizHawk.Common/OSTailoredCode.cs @@ -1,3 +1,5 @@ +#nullable disable + using System; using System.Diagnostics; using System.Runtime.InteropServices; diff --git a/BizHawk.Common/QuickCollections.cs b/BizHawk.Common/QuickCollections.cs index 84ed14f453..fbba5cd383 100644 --- a/BizHawk.Common/QuickCollections.cs +++ b/BizHawk.Common/QuickCollections.cs @@ -1,4 +1,6 @@ -using System; +#nullable disable + +using System; using System.Collections.Generic; namespace BizHawk.Common diff --git a/BizHawk.Common/Ranges.cs b/BizHawk.Common/Ranges.cs index 2d7b3aa2e5..3527a59442 100644 --- a/BizHawk.Common/Ranges.cs +++ b/BizHawk.Common/Ranges.cs @@ -1,3 +1,5 @@ +#nullable disable + using System; using System.Collections.Generic; using System.Linq; diff --git a/BizHawk.Common/Serializer.cs b/BizHawk.Common/Serializer.cs index ff40e99606..c25694f1ce 100644 --- a/BizHawk.Common/Serializer.cs +++ b/BizHawk.Common/Serializer.cs @@ -1,4 +1,6 @@ -using System; +#nullable disable + +using System; using System.Collections.Generic; using System.Globalization; using System.IO; diff --git a/BizHawk.Common/SettingsUtil.cs b/BizHawk.Common/SettingsUtil.cs index 2ce139ebfb..68f4aead44 100644 --- a/BizHawk.Common/SettingsUtil.cs +++ b/BizHawk.Common/SettingsUtil.cs @@ -1,4 +1,6 @@ -using System; +#nullable disable + +using System; using System.Collections.Generic; using System.Reflection; using System.Reflection.Emit; diff --git a/BizHawk.Common/SimpleTime.cs b/BizHawk.Common/SimpleTime.cs index bc459661d9..d86e3f33b0 100644 --- a/BizHawk.Common/SimpleTime.cs +++ b/BizHawk.Common/SimpleTime.cs @@ -1,4 +1,6 @@ -using System; +#nullable disable + +using System; using System.Diagnostics; namespace BizHawk.Common diff --git a/BizHawk.Common/SwitcherStream.cs b/BizHawk.Common/SwitcherStream.cs index 4c74fed67b..73dfea1820 100644 --- a/BizHawk.Common/SwitcherStream.cs +++ b/BizHawk.Common/SwitcherStream.cs @@ -1,3 +1,5 @@ +#nullable disable + using System; using System.IO; diff --git a/BizHawk.Common/TempFileManager.cs b/BizHawk.Common/TempFileManager.cs index c4afb4d8a8..1be76fb533 100644 --- a/BizHawk.Common/TempFileManager.cs +++ b/BizHawk.Common/TempFileManager.cs @@ -1,3 +1,5 @@ +#nullable disable + using System; using System.Linq; using System.Collections.Generic; diff --git a/BizHawk.Common/UndoHistory.cs b/BizHawk.Common/UndoHistory.cs index 66bedf1354..35da8f56a0 100644 --- a/BizHawk.Common/UndoHistory.cs +++ b/BizHawk.Common/UndoHistory.cs @@ -1,4 +1,6 @@ -using System.Collections.Generic; +#nullable disable + +using System.Collections.Generic; using System.Linq; namespace BizHawk.Common diff --git a/BizHawk.Common/Util.cs b/BizHawk.Common/Util.cs index 518e3f4593..6ed9e29e3e 100644 --- a/BizHawk.Common/Util.cs +++ b/BizHawk.Common/Util.cs @@ -1,4 +1,6 @@ -using System; +#nullable disable + +using System; using System.Collections.Generic; using System.IO; using System.IO.Compression; diff --git a/BizHawk.Common/Win32/AVIWriterImports.cs b/BizHawk.Common/Win32/AVIWriterImports.cs index c1596f87e3..015844908f 100644 --- a/BizHawk.Common/Win32/AVIWriterImports.cs +++ b/BizHawk.Common/Win32/AVIWriterImports.cs @@ -1,3 +1,5 @@ +#nullable disable + using System; using System.Runtime.InteropServices; diff --git a/BizHawk.Common/Win32/MotWHack.cs b/BizHawk.Common/Win32/MotWHack.cs index 0a122cc438..12b2a6d8d6 100644 --- a/BizHawk.Common/Win32/MotWHack.cs +++ b/BizHawk.Common/Win32/MotWHack.cs @@ -1,3 +1,5 @@ +#nullable disable + namespace BizHawk.Common { /// This code (and an import for ) is duplicated in each executable project because it needs to be used before loading assemblies. diff --git a/BizHawk.Common/Win32/ProcessorFeatureImports.cs b/BizHawk.Common/Win32/ProcessorFeatureImports.cs index e6082d006d..02d3f01037 100644 --- a/BizHawk.Common/Win32/ProcessorFeatureImports.cs +++ b/BizHawk.Common/Win32/ProcessorFeatureImports.cs @@ -1,3 +1,5 @@ +#nullable disable + using System.Runtime.InteropServices; namespace BizHawk.Common diff --git a/BizHawk.Common/Win32/ShellLinkImports.cs b/BizHawk.Common/Win32/ShellLinkImports.cs index 24c88af156..ec1d0c5166 100644 --- a/BizHawk.Common/Win32/ShellLinkImports.cs +++ b/BizHawk.Common/Win32/ShellLinkImports.cs @@ -1,3 +1,5 @@ +#nullable disable + using System; using System.Runtime.InteropServices; using System.Text; diff --git a/BizHawk.Common/Win32/ThreadHacks.cs b/BizHawk.Common/Win32/ThreadHacks.cs index 6dca599ec2..589cfe9466 100644 --- a/BizHawk.Common/Win32/ThreadHacks.cs +++ b/BizHawk.Common/Win32/ThreadHacks.cs @@ -1,3 +1,5 @@ +#nullable disable + using System; using System.Runtime.InteropServices; diff --git a/BizHawk.Common/Win32/Win32Imports.cs b/BizHawk.Common/Win32/Win32Imports.cs index 21229b5f7f..f30ba00ce7 100644 --- a/BizHawk.Common/Win32/Win32Imports.cs +++ b/BizHawk.Common/Win32/Win32Imports.cs @@ -1,4 +1,6 @@ -using System; +#nullable disable + +using System; using System.IO; using System.Runtime.InteropServices; using System.Text; diff --git a/CommonNullable.abs.props b/CommonNullable.abs.props new file mode 100644 index 0000000000..6580a28ffd --- /dev/null +++ b/CommonNullable.abs.props @@ -0,0 +1,9 @@ + + + enable + + + + + + diff --git a/Version/VersionInfo.cs b/Version/VersionInfo.cs index f34606d2fb..0294d5aa0e 100644 --- a/Version/VersionInfo.cs +++ b/Version/VersionInfo.cs @@ -1,3 +1,5 @@ +#nullable disable + using System.IO; internal static class VersionInfo