Skip to content

dotnet-install.ps1 is not checking for arm64 and will fallback to x64 #16584

@nohwnd

Description

@nohwnd

dotnet-install.ps1 checks just x86 architecture when checking for .net installation.
When you run arm64 installer on x64 device it won't install the runtime, and will end with error. So this either intentionally or by luck works okay, because it checks the installation is checked against the "native" dotnet that is installed directly in .dotnet/shared.

But the message is misleading, and should instead say: "skipped because arm64 is not supported on this platform" .

Image

This is how it looks like if I am trying to install arm64 via global.json. (the longer message is new, and comes from the fast check that is implemented here #16580

How it should work:

The installer behavior is encoded in both dotnet-install.ps1, and the fast check for Windows, Linux (and macos).

Arm64 does not seem to be widely used in global.json runtimes, so there is no hurry to fix this. You can assign to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions