fix(ci): update dotnet-version from 9.x to 10.x#141
Merged
Conversation
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."
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
dotnet-versionfrom9.xto10.xin the Build and Test workflow (dotnet.yml)Root Cause
global.jsonrequires .NET SDK10.0.103withrollForward: latestFeature, but the workflow only installed .NET 9.x. The runner's pre-installed SDK10.0.102didn't satisfy the minimum version, causingdotnet restoreto fail:Fix
Set
dotnet-version: 10.xsoactions/setup-dotnetinstalls the latest .NET 10 SDK, satisfying theglobal.jsonrequirement.Test plan
pull_requesttomain)