From 77cd154e9487fa2aa7ecdd7447142d238d4c77ec Mon Sep 17 00:00:00 2001 From: Thomas Buck Date: Wed, 24 Jun 2026 00:15:40 +0100 Subject: [PATCH] fix: drop net48 target to fix Windows build with SourceGear.sqlite3 SourceGear.sqlite3's .NET Framework props reject AnyCPU builds ("This package does not support Any CPU builds"), failing the Windows CI on the net48 target. Drop net48 and target netstandard2.0 only: it is consumable by .NET Framework 4.6.1+ and modern .NET alike, and the published package (built on Linux) never contained a net48 assembly anyway, so this also makes the build consistent across operating systems. Document the .NET Framework PlatformTarget requirement for downstream consumers in the README. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_017xW2zhMvrJChpY58hfJBeZ --- README.md | 5 +++++ .../Hangfire.Storage.SQLite.csproj | 11 +++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3cddbb4..5eb9278 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,11 @@ or with the .NET CLI: dotnet add package tbbuck.Hangfire.Storage.SQLite --prerelease ``` +> **.NET Framework note:** the patched SourceGear SQLite engine does not support `AnyCPU` on +> .NET Framework. If you consume this package from a .NET Framework app, set an explicit +> `` (`x64` or `x86`). Modern .NET (Core / 5+) consumers are unaffected — native +> assets are resolved per-RID automatically. + ## Usage This is how you connect to an SQLite instance diff --git a/src/main/Hangfire.Storage.SQLite/Hangfire.Storage.SQLite.csproj b/src/main/Hangfire.Storage.SQLite/Hangfire.Storage.SQLite.csproj index 3e36713..86f57bc 100644 --- a/src/main/Hangfire.Storage.SQLite/Hangfire.Storage.SQLite.csproj +++ b/src/main/Hangfire.Storage.SQLite/Hangfire.Storage.SQLite.csproj @@ -1,11 +1,14 @@  - + + netstandard2.0 - - netstandard2.0;net48 - 0.5.0-beta tbbuck.Hangfire.Storage.SQLite