Skip to content

dotnet workload install with --version fails #49570

@ManickaP

Description

@ManickaP

If the provided version has less than 3 components, the command "crashes" with:

Workload installation failed: Index was outside the bounds of the array.

Looks like the parsing is broken and doesn't account well for human input:

string[] coreComponents = SeparateCoreComponents(workloadSetVersion, out string[] sections);
string major = coreComponents[0];
string minor = coreComponents[1];
string patch = coreComponents[2];

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions