Just another way how to successfully install dotnet on a Mac: using Homebrew, you can simply run:
brew install dotnet
to have it install. Advantages include automatic updates via brew upgrade and less to worry about permissions or any of the workarounds mentioned as solutions before me.
Run sudo ln -s /usr/local/share/dotnet/dotnet /usr/local/bin/ in the command line, you then should be prompted for your password. This is the solution that worked for me on Mac OS Catalina.
For Rider Users: If you are installed Rider and making development on it, dotnet must be installed on your machine.
For me, I can not found dotnet installation in specified locations; here or microsoft documentations. But Rider makes its own installation.
Go to Rider - Preferences - Buildy, execution, deploymend - Toolset and build and get the path of ".NET CLI executable path". This path specifies the path of sdk installation.
You can run the command below with location you found.