Add dotnet-version-file input to read the .NET SDK version from a file#743
Open
somaz94 wants to merge 1 commit into
Open
Add dotnet-version-file input to read the .NET SDK version from a file#743somaz94 wants to merge 1 commit into
somaz94 wants to merge 1 commit into
Conversation
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.
Adds a
dotnet-version-fileinput that resolves the .NET SDK version from a file, so the version can live in a single source of truth shared with asdf / mise. It reads thedotnetentry from a.tool-versionsfile, or thesdk.versionfield from aglobal.json. This mirrors the existingglobal-json-filehandling and the*-version-fileconvention used bysetup-node/setup-python.Related issue: #459
Validation
npm test— 157 passed (4 new tests: missing file fails,.tool-versionsread,global.jsonread via the same input, no-dotnet-entry warning)npm run format-check— cleannpm run lint— cleannpm run build—dist/rebuilt (built locally on Node 23; theCheck dist/workflow re-verifies on Node 24)