Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotnet tool install -a arm64 fails #21395

Closed
richlander opened this issue Sep 24, 2021 · 5 comments
Closed

dotnet tool install -a arm64 fails #21395

richlander opened this issue Sep 24, 2021 · 5 comments
Assignees
Milestone

Comments

@richlander
Copy link
Member

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)
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Tools untriaged Request triage from a team member labels Sep 24, 2021
@sfoslund
Copy link
Member

@richlander Does the file dotnet/sdk/{version}/NETCoreSdkRuntimeIdentifierChain.txt exist in your installation? If so, what's the content?

@sfoslund sfoslund removed the untriaged Request triage from a team member label Sep 24, 2021
@sfoslund sfoslund self-assigned this Sep 24, 2021
@sfoslund sfoslund added this to the 6.0.1xx milestone Sep 24, 2021
@richlander
Copy link
Member Author

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%                                                   

@sfoslund
Copy link
Member

Hmm it seems to be failing to find that file: https://github.com/dotnet/sdk/blob/main/src/Cli/dotnet/CommonOptions.cs#L205, I'll try to repro

@sfoslund
Copy link
Member

Fixed by #21435

@richlander
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants