Skip to content

dotnet-install.sh no longer working with both --version and --quality specified #285

@SteveL-MSFT

Description

@SteveL-MSFT

Description

Our bootstrapper script for PowerShell 7 has been specifying both the version and quality and has been working until a few days ago when it started returning an error. If I modify our script to pass just the --version and leave out --quality it works. This is a breaking change and the error message seems to indicate this is a bug and not intended behavior. Note that the .ps1 doesn't have this problem.

Reproduction Steps

./dotnet-install.sh -v 7.0.100-preview.5.22307.18 -q daily -skipnonversionedfiles

Expected behavior

dotnet should install the version specified

Actual behavior

dotnet_install: Error: Either Quality or Version option has to be specified. See https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script#options for details.

Regression?

Yes, starting failing this week

Known Workarounds

Remove --quality and only specify --version. The PowerShell script dotnet-install.ps1 doesn't have this problem where we continue to specify both version and quality.

Configuration

7.0.100-preview.5.22307.18

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    untriagedIssue is awaiting triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions