From 23dec8901bdbcbc9e2224deb1f68deff80720c64 Mon Sep 17 00:00:00 2001 From: Cyd Date: Thu, 30 Jul 2026 08:59:51 -0500 Subject: [PATCH] build: repair net40 Tray build and test-host binding redirects Environment drift since ~7/26 broke a pristine checkout: (1) the SDK's AutoGenerateBindingRedirects made RAR drop RioJoy.Core.dll for the net40 Tray exe (Bcl facade 1.5.11.0 vs 2.6.8.0 mismatch) - disabled for net40 with a hand-authored app.net40.config carrying the 2.6.8.0 redirects, which XP's CLR 4.0 does not unify on its own; (2) 25 serial-link tests failed on System.Runtime.CompilerServices.Unsafe load - Channels 8.0's net462 binary references Unsafe 6.0.0.0 without declaring the dependency; pinned the package and added the redirect app.config the earlier good builds had auto-generated. Co-Authored-By: Claude Fable 5 --- src/RioJoy.Tray/RioJoy.Tray.csproj | 10 +++++++ src/RioJoy.Tray/app.net40.config | 26 +++++++++++++++++++ .../RioJoy.Core.Tests.csproj | 6 +++++ tests/RioJoy.Core.Tests/app.config | 18 +++++++++++++ 4 files changed, 60 insertions(+) create mode 100644 src/RioJoy.Tray/app.net40.config create mode 100644 tests/RioJoy.Core.Tests/app.config diff --git a/src/RioJoy.Tray/RioJoy.Tray.csproj b/src/RioJoy.Tray/RioJoy.Tray.csproj index b19dce7..a95ab91 100644 --- a/src/RioJoy.Tray/RioJoy.Tray.csproj +++ b/src/RioJoy.Tray/RioJoy.Tray.csproj @@ -21,6 +21,16 @@ x86 + + false + app.net40.config diff --git a/src/RioJoy.Tray/app.net40.config b/src/RioJoy.Tray/app.net40.config new file mode 100644 index 0000000..abeab28 --- /dev/null +++ b/src/RioJoy.Tray/app.net40.config @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/tests/RioJoy.Core.Tests/RioJoy.Core.Tests.csproj b/tests/RioJoy.Core.Tests/RioJoy.Core.Tests.csproj index fdbe434..373ebd5 100644 --- a/tests/RioJoy.Core.Tests/RioJoy.Core.Tests.csproj +++ b/tests/RioJoy.Core.Tests/RioJoy.Core.Tests.csproj @@ -15,6 +15,12 @@ + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/tests/RioJoy.Core.Tests/app.config b/tests/RioJoy.Core.Tests/app.config new file mode 100644 index 0000000..f617631 --- /dev/null +++ b/tests/RioJoy.Core.Tests/app.config @@ -0,0 +1,18 @@ + + + + + + + + + + + +