-
Notifications
You must be signed in to change notification settings - Fork 477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow specifying 'latest' as dotnet-version #497
Comments
Hello @CamJN, |
I'd also appreciate this feature. For reference, it is currently possible to install the latest LTS version with: - name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: x Unfortunately, this always installs a version from the LTS channel due to Lines 77 to 78 in 3e891b0
|
The version must be specified explicitly due to actions/setup-dotnet#497 (comment) Signed-off-by: Kevin Locke <[email protected]>
The version must be specified explicitly due to actions/setup-dotnet#497 (comment) Signed-off-by: Kevin Locke <[email protected]>
I'm utterly confused. AFAICT the docs state that the latest SDK should be able to build projects that target older versions. So why would I ever want to lock down the SDK version? Isn't the 80% use case that you'd want to build using the latest project and not have to mess around with strange global.json files? I have a reusable workflow shared by several projects. These projects will gradually move towards whatever is the latest .net version. They currently do not have a global.json file. I see dependabot can be used to update global.json. (again: why would I want this? Just use the latest SDK already!) |
Description:
A workflow with the following would install the latest major version of dotnet.
Justification:
It would be nice to be able to just stick
latest
in the dotnet-version field and not have to update the tag when a new major version comes out. This is available in the node and ruby setup actions and is quite nice.Are you willing to submit a PR?
Unlikely.
The text was updated successfully, but these errors were encountered: