diff --git a/NET/Mbc.Pcs.Net.DataRecorder.Test/FileRingBufferTest.cs b/NET/Mbc.Pcs.Net.DataRecorder.Test/FileRingBufferTest.cs index 23ac7e0..2efad1d 100644 --- a/NET/Mbc.Pcs.Net.DataRecorder.Test/FileRingBufferTest.cs +++ b/NET/Mbc.Pcs.Net.DataRecorder.Test/FileRingBufferTest.cs @@ -9,13 +9,6 @@ namespace Mbc.Pcs.Net.Test.DataRecorder { public class FileRingBufferTest { - public FileRingBufferTest() - { -#if NET8_0_OR_GREATER - // Enable BinaryFormatter, because in .NET 8.0 it is disabled by default - AppContext.SetSwitch("System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization", true); -#endif - } [Fact] public void SmokeTest() diff --git a/NET/Mbc.Pcs.Net.DataRecorder.Test/Mbc.Pcs.Net.DataRecorder.Test.csproj b/NET/Mbc.Pcs.Net.DataRecorder.Test/Mbc.Pcs.Net.DataRecorder.Test.csproj index 50a1740..7d7e0b1 100644 --- a/NET/Mbc.Pcs.Net.DataRecorder.Test/Mbc.Pcs.Net.DataRecorder.Test.csproj +++ b/NET/Mbc.Pcs.Net.DataRecorder.Test/Mbc.Pcs.Net.DataRecorder.Test.csproj @@ -5,6 +5,7 @@ Mbc.Pcs.Net.DataRecorder.Test false + true NU1702;CS7022 @@ -23,6 +24,9 @@ + + + diff --git a/NET/Mbc.Pcs.Net.DataRecorder/Mbc.Pcs.Net.DataRecorder.csproj b/NET/Mbc.Pcs.Net.DataRecorder/Mbc.Pcs.Net.DataRecorder.csproj index ba3b0f9..c19a235 100644 --- a/NET/Mbc.Pcs.Net.DataRecorder/Mbc.Pcs.Net.DataRecorder.csproj +++ b/NET/Mbc.Pcs.Net.DataRecorder/Mbc.Pcs.Net.DataRecorder.csproj @@ -6,7 +6,7 @@ Mbc.Pcs.Net.DataRecorder - true + true NU1702 @@ -16,5 +16,6 @@ + \ No newline at end of file