dotnet / format

Home for the dotnet-format command

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: Is is possible to install for arch ARM?

diogonborges opened this issue · comments

I've recently installed dotnet-format on a ARM based M1 Macbook via

dotnet tool install -g dotnet-format 

but when running the command it fails because I believe the installed version was x64

You must install .NET to run this application.
App: /Users/ooooooo/.dotnet/tools/dotnet-format
Architecture: x64
App host version: 6.0.8
.NET location: Not found

Learn about runtime installation:
https://aka.ms/dotnet/app-launch-failed
Download the .NET runtime:
https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=osx.12-x64&apphost_version=6.0.8

I have dotnet 6.0.4 SDK installed for arm64

thanks

@diogonborges Do you have a .NET SDK installed? dotnet-format now ships as part of the .NET 6 SDK (see announcement).

dotnet-format cannot be run with only a .NET Runtime installed because it needs the build tooling that ships with the SDK. So even when trying to run the dotnet tool version of dotnet-format, a SDK is required.