Skip to content

Using quality and channel in A.B format doesn't cause warning despite not being supported #652

Closed

Description

@PhilippNaused

Using a command like .\dotnet-install.ps1 -Channel 10.0 -Quality daily -DryRun doesn't cause any warning or error.
But the docs clearly say that this is not supported:

For SDK use channel in A.B.Cxx format: using quality together with channel in A.B format is not supported.

echo " For SDK use channel in A.B.Cxx format. Using quality for SDK together with channel in A.B format is not supported."

Activity

  1. self-assigned this
    on Nov 12, 2025
  2. ellahathaway commented on Nov 12, 2025

    @ellahathaway
    Member

    It appears that when using the --channel and --quality parameters together, the install script selects and downloads the latest SDK version within the specified channel that matches the desired quality:

    • ./dotnet-install.sh --channel 8.0 --quality daily --dry-run -> ./dotnet-install.sh --version "8.0.320-servicing.25561.2"
    • ./dotnet-install.sh --channel 8.0 --quality preview --dry-run -> ./dotnet-install.sh --version "8.0.100-rc.2.23502.2"
    • ./dotnet-install.sh --channel 8.0 --quality GA --dry-run -> ./dotnet-install.sh --version "8.0.416"

    In each case, the script determines the highest available version in the specified channel that matches the quality criteria, rather than warning or erroring. This behavior may differ from what the documentation suggests.

    Since the behavior appears to work, we should consider updating the documentation.

  3. removed their assignment
    on Nov 12, 2025
  4. PhilippNaused commented on Nov 13, 2025

    @PhilippNaused
    ContributorAuthor

    There is even an example of using it this way:

    .EXAMPLE
    dotnet-install.ps1 -Channel 8.0 -Quality GA
    Installs the latest GA (general availability) version of the .NET 8.0 SDK

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions