From 8bf606666603f5c3d26438c9cd1f958b27ddd72b Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Mon, 29 Dec 2025 07:51:39 +0000
Subject: [PATCH 1/3] Initial plan
From 9297b08dcba3fbb8f1e7b4946b0e3be4d98bff2e Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Mon, 29 Dec 2025 07:56:24 +0000
Subject: [PATCH 2/3] Add System.Runtime.Serialization.Formatters NuGet package
for .NET 8 targets
Co-authored-by: bqstony <10487253+bqstony@users.noreply.github.com>
---
NET/Mbc.Pcs.Net.DataRecorder.Test/FileRingBufferTest.cs | 7 -------
.../Mbc.Pcs.Net.DataRecorder.Test.csproj | 1 +
.../Mbc.Pcs.Net.DataRecorder.csproj | 3 ++-
3 files changed, 3 insertions(+), 8 deletions(-)
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..fa9ead4 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
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
From 429c253e5aa945fad399621d6c5c64a413445d7e Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Mon, 29 Dec 2025 07:58:19 +0000
Subject: [PATCH 3/3] Add System.Runtime.Serialization.Formatters package
reference to test project
Co-authored-by: bqstony <10487253+bqstony@users.noreply.github.com>
---
.../Mbc.Pcs.Net.DataRecorder.Test.csproj | 3 +++
1 file changed, 3 insertions(+)
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 fa9ead4..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
@@ -24,6 +24,9 @@
+
+
+