Home > front end >  dotnet core 2.1.8 setup for OpenApi specification on Mac m1
dotnet core 2.1.8 setup for OpenApi specification on Mac m1

Time:09-17

I am trying to install dotnet core 2.1.8 for existing OpenAPI specification project. But I'm getting this error

 zsh: command not found: dotnet 

I have also used sudo ln -s /usr/local/share/dotnet/x64/dotnet /usr/local/bin/ but it didn't work for me.

CodePudding user response:

I solve this by run this code in terminal

sudo ln -s /usr/local/share/dotnet/dotnet /usr/local/bin/

At first remove the dotnet file from /usr/local/bin/ and run the code in terminal

you can run dotnet --version to check version.

/usr/local/share/dotnet/x64/dotnet this path is not available in my mac m1.

to find out your path got to the dotnet folder right click on the dotnet application and press and hold option key in your keybord now you copy path.

  • Related