From 5dfd2d96b54bc7c9ebd5bf4ccae92bfcdf05fc58 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Thu, 25 Jul 2024 17:20:54 +0000 Subject: [PATCH] fix: Downgrade Microsoft.Extensions.Hosting to 7.0.1 A handful of csprojs were referencing version 8.0.0. Since that version targets net8.0, I have no idea why it didn't cause the build to fail. Instead, this framework mismatch led to a mysterious runtime crash with the following error, despite the dll in question being present in the build dir: Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified. It is worth noting that this crash would only happen for exes published as part of the DataStreamSuite.sln with the "--self-contained" flag. For example, the Bts.DataStreamSuite.Server exe would always fail if published via: dotnet publish --configuration Release --sc --framework net7.0 --runtime linux-x64 --- src/DataStreamSuite/DataStreamCore/DataStreamCore.csproj | 2 +- .../DataStreamPublisher/DataStreamPublisher.csproj | 2 +- src/DataStreamSuite/PubSub/PubSub.csproj | 2 +- src/client/spark_api/spark_api.csproj | 2 +- src/client/spark_core/spark_core.csproj | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/DataStreamSuite/DataStreamCore/DataStreamCore.csproj b/src/DataStreamSuite/DataStreamCore/DataStreamCore.csproj index 30ed246f6..98e1763a3 100644 --- a/src/DataStreamSuite/DataStreamCore/DataStreamCore.csproj +++ b/src/DataStreamSuite/DataStreamCore/DataStreamCore.csproj @@ -8,7 +8,7 @@ - + diff --git a/src/DataStreamSuite/DataStreamPublisher/DataStreamPublisher.csproj b/src/DataStreamSuite/DataStreamPublisher/DataStreamPublisher.csproj index e525ad268..7e33ea5b0 100644 --- a/src/DataStreamSuite/DataStreamPublisher/DataStreamPublisher.csproj +++ b/src/DataStreamSuite/DataStreamPublisher/DataStreamPublisher.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/DataStreamSuite/PubSub/PubSub.csproj b/src/DataStreamSuite/PubSub/PubSub.csproj index 89f5e0d0f..032925673 100644 --- a/src/DataStreamSuite/PubSub/PubSub.csproj +++ b/src/DataStreamSuite/PubSub/PubSub.csproj @@ -1,7 +1,7 @@ - + diff --git a/src/client/spark_api/spark_api.csproj b/src/client/spark_api/spark_api.csproj index 7c9dc1f9f..4bffea835 100644 --- a/src/client/spark_api/spark_api.csproj +++ b/src/client/spark_api/spark_api.csproj @@ -20,7 +20,7 @@ all - + diff --git a/src/client/spark_core/spark_core.csproj b/src/client/spark_core/spark_core.csproj index 7319e6102..fb8909959 100644 --- a/src/client/spark_core/spark_core.csproj +++ b/src/client/spark_core/spark_core.csproj @@ -15,7 +15,7 @@ all - +