Skip to content

Add global.json for .NET 8 SDK; replace explicit versions in CI workflows - #29

Merged
Shane32 merged 3 commits into
masterfrom
copilot/create-global-json-dotnet-8
May 6, 2026
Merged

Add global.json for .NET 8 SDK; replace explicit versions in CI workflows#29
Shane32 merged 3 commits into
masterfrom
copilot/create-global-json-dotnet-8

Conversation

Copilot AI commented May 6, 2026

Copy link
Copy Markdown

Centralizes the .NET 8 SDK version into a single global.json rather than repeating it across every workflow file.

Changes

  • global.json (new, repo root): pins .NET 8 SDK at 8.0.100 with rollForward: latestFeature, equivalent to the previous 8.0.x wildcard
  • build.yml: both setup-dotnet steps now use global-json-file: global.json instead of dotnet-version: '8.0.x'
  • publish.yml: same replacement
  • test-documentation.yml: same replacement
  • test-code.yml: removes 8.0.x from the multi-SDK dotnet-version list; adds global-json-file: global.json as a sibling parameter — actions/setup-dotnet installs all versions from both inputs
# test-code.yml — before
dotnet-version: |
  2.1.x
  3.1.x
  6.0.x
  8.0.x

# after
dotnet-version: |
  2.1.x
  3.1.x
  6.0.x
global-json-file: global.json

Updated the setup steps to include global JSON file for .NET.
Comment thread .github/workflows/test-code.yml Outdated
@Shane32
Shane32 marked this pull request as ready for review May 6, 2026 02:27
@Shane32
Shane32 merged commit 6ebf08b into master May 6, 2026
1 of 3 checks passed
@Shane32
Shane32 deleted the copilot/create-global-json-dotnet-8 branch May 6, 2026 02:33
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.

2 participants