Skip to content

fix(ci): update dotnet-version from 9.x to 10.x#141

Merged
phmatray merged 1 commit intomainfrom
fix/action-dotnet
Feb 27, 2026
Merged

fix(ci): update dotnet-version from 9.x to 10.x#141
phmatray merged 1 commit intomainfrom
fix/action-dotnet

Conversation

@phmatray
Copy link
Contributor

Summary

  • Updates dotnet-version from 9.x to 10.x in the Build and Test workflow (dotnet.yml)

Root Cause

global.json requires .NET SDK 10.0.103 with rollForward: latestFeature, but the workflow only installed .NET 9.x. The runner's pre-installed SDK 10.0.102 didn't satisfy the minimum version, causing dotnet restore to fail:

Requested SDK version: 10.0.103
A compatible .NET SDK was not found.

Fix

Set dotnet-version: 10.x so actions/setup-dotnet installs the latest .NET 10 SDK, satisfying the global.json requirement.

Test plan

  • CI passes on this PR (the workflow runs on pull_request to main)

global.json requires SDK 10.0.103 with rollForward: latestFeature,
but the workflow only installed .NET 9.x. The runner's pre-installed
10.0.102 didn't satisfy the minimum version requirement, causing
`dotnet restore` to fail with "A compatible .NET SDK was not found."
@phmatray phmatray merged commit 46d5827 into main Feb 27, 2026
1 of 2 checks passed
@phmatray phmatray deleted the fix/action-dotnet branch February 27, 2026 15:53
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