Skip to content

fix: update NUKE build tool to match .NET SDK version#85

Merged
phmatray merged 1 commit intomainfrom
fix/80-nuke-build-dotnet-version
Feb 26, 2026
Merged

fix: update NUKE build tool to match .NET SDK version#85
phmatray merged 1 commit intomainfrom
fix/80-nuke-build-dotnet-version

Conversation

@phmatray
Copy link
Owner

Summary

  • Add setup-dotnet step to CI workflow to install .NET 10 SDK on GitHub Actions runners
  • Disable NUKE auto-generation of the workflow file to preserve the manual setup-dotnet step
  • Aligns CI environment with global.json SDK requirement (10.0.103) and NUKE build project target (net10.0)

Fixes #80

Changes

  • .github/workflows/continuous.yml: Added actions/setup-dotnet@v5 with dotnet-version: '10.0.x' before the cache and build steps; removed auto-generated header comment
  • build/Build.cs: Set AutoGenerate = false on the [GitHubActions] attribute to prevent NUKE from overwriting the workflow

Testing

  • NUKE build project compiles successfully with dotnet build build/_build.csproj
  • CI workflow will now explicitly install .NET 10 SDK before running the build
  • The deploy-docs.yml workflow already had this setup-dotnet step and was working correctly

Add setup-dotnet step to CI workflow to install .NET 10 SDK, which is
required by both the NUKE build project (targeting net10.0) and the
application projects. Without this step, the CI runner uses its default
SDK which may not include .NET 10.

Also disable NUKE auto-generation of the workflow file to prevent the
setup-dotnet step from being overwritten.

Fixes #80
@phmatray phmatray merged commit fb85a80 into main Feb 26, 2026
1 check passed
@phmatray phmatray deleted the fix/80-nuke-build-dotnet-version branch February 26, 2026 23:00
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.

[BUG] Fix NUKE build tool .NET version mismatch

1 participant