Skip to content

[dotnet] add proper support for preview versions #1469

@sliekens

Description

@sliekens

Pull request #1305 added the ability to specify "version": "10.0-preview", however, the implementation does not actually honor the suffix. Instead, the suffix is simply removed.

# Remove '-preview' from version if suffixed with the version label
clean_version="$(echo "$version" | sed 's/-preview$//')"

Once .NET 10 goes GA, that means 10.0-preview will also resolve to a GA build, and this could be surprising behavior.

Instead, I would recommend to modify the install script to add proper support for -preview as a suffix, such that it always results in a preview version getting installed.

The underlying dotnet-install.sh script allows this by passing flag --quality preview, it is just a matter of wiring it up properly.

dotnet-install.sh --channel 10.0 --quality preview

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions