xxxxxxxxxx
If you dont have dotnet sdk download,
if working on rider and does not working on visual studio.
Go rider and write:
which dotnet
dotnet --list-sdks
Copy first line (similar this /Users/USERNAME/.dotnet/dotnet)
Then write to terminal:
nano ~/.zshrc
Then write copied path:
export PATH="$PATH:/Users/USERNAME/.dotnet"
export DOTNET_ROOT="/Users/USERNAME/.dotnet"
save and exit and write this to terminal:
source ~/.zshrc