GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Allow specifying 'latest' as dotnet-version · Issue #497 · actions/setup-dotnet

Allow specifying 'latest' as dotnet-version #497

New issue
Copy link
New issue
Copy link
Closed
Closed
Allow specifying 'latest' as dotnet-version#497
Copy link
Assignees
v-mahabaleshwars
Labels
feature requestNew feature or request to improve the current logic

Description

@CamJN
CamJN
opened on Jan 10, 2024
Issue body actions

Description:
A workflow with the following would install the latest major version of dotnet.

    - name: Setup .NET
      uses: actions/setup-dotnet@v4
      with:
        dotnet-version: latest

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.

Reacted by Kevin Locke, Rune Moberg, Henrik Røn, Rasmus Sigsgaard, Stephen Klancher, Andy Zivkovic, Frulfump, Vlad Ionescu and Jeffrey Rehm

Activity

  1. CamJN
    added
    feature requestNew feature or request to improve the current logic
    needs triage
    on Jan 10, 2024
  2. v-aparnajyothi-y
    removed
    needs triage
    on Jan 10, 2024
  3. v-aparnajyothi-y commented on Jan 10, 2024

    @v-aparnajyothi-y
    v-aparnajyothi-y
    on Jan 10, 2024
    Contributor
    More actions

    Hello @CamJN,
    Thank you for creating this issue, we will investigate it and come back to you as soon as we have some feedback.

  4. v-aparnajyothi-y
    assigned
    shaanmugapriya
    on Jan 10, 2024
  5. v-HarithaVattikuti
    unassigned
    shaanmugapriya
    on Apr 12, 2024
  6. kevinoid commented on Nov 20, 2024

    @kevinoid
    kevinoid
    on Nov 20, 2024
    More actions

    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

    setup-dotnet/src/installer.ts

    Lines 77 to 78 in 3e891b0

    // If "dotnet-version" is specified as *, x or X resolve latest version of .NET explicitly from LTS channel. The version argument will default to "latest" by install-dotnet script.
    this.resolvedArgument.value = 'LTS';

    Reacted by Frulfump
  7. kevinoid
    added 2 commits that reference this issue on Nov 20, 2024

    ci: use .NET 9.0 SDK

    b228fd5

    ci: use .NET 9.0 SDK

    cc9160b
  8. vRune4 commented on Dec 6, 2024

    @vRune4
    vRune4
    on Dec 6, 2024
    More actions

    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!)

  9. guardrex commented on Jan 14, 2025

    @guardrex
    guardrex
    on Jan 14, 2025
    More actions

    It's been a year, would someone prioritize this for work? Having to update the version every .NET SDK major release is a pain, and this Action is now being used by an official Microsoft samples repo (dotnet/blazor-samples).

    Reacted by Rasmus Sigsgaard, Frulfump and Vitalii Kotenko
  10. ericsampson commented on Mar 7, 2025

    @ericsampson
    ericsampson
    on Mar 7, 2025
    More actions

    useless comment, but good to see @guardrex still fighting to make things better after all these years 👍

    Reacted by Luke Latham, Rune Moberg and Frulfump
  11. Frulfump commented on Aug 17, 2025

    @Frulfump
    Frulfump
    on Aug 17, 2025
    More actions

    Is latest here referring to (public) preview, latest stable or latest nightly (called daily for the quality with this action) build? I'd like all three of those options to be available. I think it makes most sense if "latest" by default means latest stable and then use a channel option to control if you get the others. EDIT: Also seems like there's an additional option supported in the install script called -Quality | ----quality
    https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script#options

    docs for --quality

    Downloads the latest build of the specified quality in the channel. The possible values are: daily, preview, and GA.

    The different quality values signal different stages of the release process of the SDK or Runtime installed.

    daily: The latest builds of the SDK or Runtime. They're built every day and aren't tested. They aren't recommended for production use but can often be used to test specific features or fixes immediately after they are merged into the product. These builds are from the dotnet/installer repo, and so if you're looking for fixes from dotnet/sdk you must wait for code to flow and be merged from SDK to Installer before it appears in a daily build.
    preview: The monthly public releases of the next version of .NET, intended for public use. Not recommended for production use. Intended to allow users to experiment and test the new major version before release.
    GA: The final stable releases of the .NET SDK and Runtime. Intended for public use as well as production support.
    

    The --quality option works only in combination with --channel, but is not applicable for the STS and LTS channels and will be ignored if one of those channels is used.

    For an SDK installation, use a channel value that is in A.B or A.B.Cxx format. For a runtime installation, use channel in A.B format.

    Don't use both version and quality parameters. When quality is specified, the script determines the proper version on its own.

    Available since the 5.0 release.

    Sadly there isn't much attention paid to either issues or community PRs for this repo so I think it's better to either fork this repo or just use the install scripts from Microsoft directly. https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script I wonder why they don't let GitHub Copilot try to fix the currently 34 open issues and review the currently 22 open PRs, we could be done within a week.

  12. v-mahabaleshwars
    added a commit that references this issue on Apr 15, 2026

    feat: add dotnet-version: latest keyword with dotnet-channel support (a…

    6b3d9aa
  13. v-priya-kinthali commented on Apr 16, 2026

    @v-priya-kinthali
    v-priya-kinthali
    on Apr 16, 2026
    Contributor
    More actions

    Hello Everyone👋! We have raised PR#730 which adds dotnet-version: latest support along with an optional dotnet-channel input. Any feedback or suggestions would be welcome. Thanks in advance!

    Reacted by Frulfump
    Reacted by Luke Latham and Kevin Locke
    Reacted by Frulfump
  14. v-mahabaleshwars
    self-assigned this
    on Apr 21, 2026
  15. v-HarithaVattikuti
    added a commit that references this issue on Apr 27, 2026

    Add dotnet-version: latest support with dotnet-channel input (#730)

    af9211b
  16. v-mahabaleshwars commented on Apr 29, 2026

    @v-mahabaleshwars
    v-mahabaleshwars
    on Apr 29, 2026
    Contributor
    More actions

    Hi @CamJN,

    This has been addressed via #730, now merged into main.

    The action supports dotnet-version: latest to automatically install the highest active .NET SDK, along with an optional dotnet-channel input (LTS, STS, A.B, A.B.Cxx) to filter the resolved version. This will be available in the next release.

    Closing as completed.

    Reacted by Kevin Locke and Luke Latham
  17. v-mahabaleshwars
    closed this as completedon Apr 29, 2026
  18. kevinoid
    added 3 commits that reference this issue on Jun 5, 2026

    ci: use dotnet-version: latest

    2003d46

    ci: use dotnet-version: latest

    e8d7a44

    ci: use dotnet-version: latest

    9786a24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @v-mahabaleshwars
    v-mahabaleshwars

Labels

feature requestNew feature or request to improve the current logic

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.