From 6694ac683d0e46331c153a68bea9417d193beb7c Mon Sep 17 00:00:00 2001 From: Thomas Buck Date: Wed, 24 Jun 2026 00:07:18 +0100 Subject: [PATCH] ci: fix NU5026 pack failure and modernise CI to .NET 8/9 Remove GeneratePackageOnBuild from the library project: combined with an explicit `dotnet pack -o artifacts` it races the build output and fails with NU5026 ("file to be packed was not found"), which broke the publish workflow. Packaging is now driven solely by the explicit `dotnet pack`. This also stops the library being re-packed (and emitting readme warnings) during `dotnet test`. Update the CI workflow to .NET 8.0.x + 9.0.x (was 6.0.x, which can't build the net8.0 test project) and bump checkout/setup-dotnet to v4. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_017xW2zhMvrJChpY58hfJBeZ --- .github/workflows/dotnetcore.yml | 26 ++++++++++--------- .../Hangfire.Storage.SQLite.csproj | 1 - 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index 4d9939f..a0f4b71 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -2,13 +2,13 @@ name: CI-HS-SQLITE on: pull_request: - branches: - - master - - develop + branches: + - master + - develop push: - branches: + branches: - master - - develop + - develop jobs: build: strategy: @@ -17,16 +17,18 @@ jobs: - macOS-latest - ubuntu-latest - windows-latest - + runs-on: ${{matrix.os}} - + steps: - - uses: actions/checkout@v3 - - name: Setup .NET Core - uses: actions/setup-dotnet@v3 + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 with: - dotnet-version: 6.0.x + dotnet-version: | + 8.0.x + 9.0.x - name: Build with dotnet run: dotnet build --configuration Release - name: Unit Tests - run: dotnet test + run: dotnet test --configuration Release diff --git a/src/main/Hangfire.Storage.SQLite/Hangfire.Storage.SQLite.csproj b/src/main/Hangfire.Storage.SQLite/Hangfire.Storage.SQLite.csproj index 0c447c5..3e36713 100644 --- a/src/main/Hangfire.Storage.SQLite/Hangfire.Storage.SQLite.csproj +++ b/src/main/Hangfire.Storage.SQLite/Hangfire.Storage.SQLite.csproj @@ -18,7 +18,6 @@ https://github.com/tbbuck/Hangfire.Storage.SQLite git Hangfire Hangfire-Storage Hangfire-Extension SQLite - true Hangfire Storage SQLite (tbbuck fork) An alternative SQLite storage for Hangfire. Maintained fork of RaisedApp/Hangfire.Storage.SQLite that modernises the SQLite dependency stack and remediates CVE-2025-6965.