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" .
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.
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" .
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.