question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`dotnet tool install -a arm64` fails

See original GitHub issue

Same thing as #21393 (but different command).

rich@MacBook-Air-M1-2020 app4321 % dotnet --info | grep RID
 RID:         osx-x64
rich@MacBook-Air-M1-2020 app4321 % dotnet tool install -g app4321 --add-source bin/Debug -a arm64
System.AggregateException: One or more errors occurred. (Resolving the current runtime identifier failed.)
 ---> Microsoft.DotNet.Cli.Utils.GracefulException: Resolving the current runtime identifier failed.
   at Microsoft.DotNet.Cli.CommonOptions.GetCurrentRuntimeId()
   at Microsoft.DotNet.Cli.CommonOptions.ResolveRidShorthandOptionsToRuntimeIdentifier(String os, String arch)
   at Microsoft.DotNet.ShellShim.ShellShimTemplateFinder.ResolveAppHostSourceDirectoryAsync(String archOption, String targetFramework)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at System.Threading.Tasks.Task`1.get_Result()
   at Microsoft.DotNet.Tools.Tool.Install.ToolInstallGlobalOrToolPathCommand.Execute()
   at Microsoft.DotNet.Tools.Tool.Install.ToolInstallCommand.Execute()
   at Microsoft.DotNet.Cli.DotNetTopLevelCommandBase.RunCommand(String[] args)
   at Microsoft.DotNet.Tools.Tool.ToolCommand.Run(String[] args)
   at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient)
   at Microsoft.DotNet.Cli.Program.Main(String[] args)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
richlandercommented, Sep 24, 2021
rich@MacBook-Air-M1-2020 app4321 % dotnet --info | grep RID
 RID:         osx-x64
rich@MacBook-Air-M1-2020 app4321 % cat /usr/local/share/dotnet/x64/sdk/6.0.100-rc.2.21473.35/NETCoreSdkRuntimeIdentifierChain.txt 
osx-x64
osx
unix-x64
unix
any
base%                                                                           
rich@MacBook-Air-M1-2020 app4321 % cat /usr/local/share/dotnet/sdk/6.0.100-rc.2.21473.35/NETCoreSdkRuntimeIdentifierChain.txt 
osx-arm64
osx
unix-arm64
unix
any
base%                                                   
0reactions
richlandercommented, Sep 29, 2021

Just validated this fix in 6.0.100-rc.2.21478.25. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet tool install -a arm64 fails on linux-arm64 #29074
Describe the bug dotnet tool install --global --arch arm64 fails reporting that the RID linux-arm64 is invalid. To Reproduce Create Amazon ...
Read more >
dotnet ef command showing below error in mac
dotnet -ef is the package name. The command is dotnet ef with a space. You don't mention that you have installed the EF...
Read more >
Install .NET on macOS
In this article, you'll learn how to install .NET on macOS. .NET is made up of the runtime and the SDK. The runtime...
Read more >
X Tool on Apple ARM MACs - ServiceStack
I experience a strange problem with the X tool on dotnet 6 on Macs with an Apple Silicon M1 / M2 processor. This...
Read more >
Cannot debug net6.0-macos Apps - Developer Community
When I hit debug, the following error is shown in the Terminal: Possible reasons for this include: * You misspelled a built-in dotnet...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found