Misaliperver: Mac Dotnet Setup

 Reference: https://dotnet.microsoft.com/en-us/learn/aspnet/hello-world-tutorial/install

If you have a m2 silicon yonga, you can use second section button. I have m2 and installed in my pc.


You must be start pkg file and allow that initializer request and wait complated successfully.

While you will open your terminal and as documents shows, you enter "dotnet" command, you will see zsh: command not found: dotnet  error.

Don't worry, solution is so easy.

First off all you must try to go /usr/local/bin.

If you couldnt go to directory, you must add file with general read-write access permission.

sudo mkdir -p -m 775 /usr/local/bin

And you must be link your donet sdk this file, with below code;

sudo ln -s /usr/local/share/dotnet/dotnet /usr/local/bin/
Thats it, you can start to use your dotnet sdk from terminal or visual studio code.

Yorumlar