Skip to content

ci: fix NU5026 pack failure and modernise CI to .NET 8/9 - #6

Merged
tbbuck merged 1 commit into
masterfrom
ci/fix-pack-and-modernise
Jun 23, 2026
Merged

tbbuck merged 1 commit into
masterfrom
ci/fix-pack-and-modernise

Conversation

@tbbuck

@tbbuck tbbuck commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Fixes the dotnet pack NU5026 failure in the publish workflow by removing GeneratePackageOnBuild from the library project (it races the explicit dotnet pack -o artifacts build output). Packaging is now driven solely by the explicit pack step; this also stops the lib being re-packed during dotnet test.

Also modernises the CI workflow: .NET 8.0.x + 9.0.x (was 6.0.x, which can't build the net8.0 test project) and bumps actions/checkout/setup-dotnet to v4.

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) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017xW2zhMvrJChpY58hfJBeZ
@tbbuck
tbbuck merged commit b3d21d8 into master Jun 23, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant