'Cannot install dotnet sdk on mac

I have installed dotnet sdk from https://dotnet.microsoft.com/download/download

after installing I run on terminal: dotnet --version and I get : zsh: command not found: dotnet

I have operating system: macOS Big Sur 11.6 on MacBook Air (M1, 2020)



Solution 1:[1]

I fixed this by downloading and installing Visual Studio 2022 for Mac:

https://visualstudio.microsoft.com/vs/mac/preview/

It will download the dotnet SDK also

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Leandro Bardelli