Using Visual Studio for Mac? This release is only compatible with Visual Studio 2019 for Mac (v8.9). Using a different version? See Visual Studio for Mac .NET support.
If your download doesn't start after 30 seconds, click here to download manually.
To verify the download file hasn't been corrupted, you can use the SHA512 checksum information above to validate the file as explained in Verify downloaded binaries.
When your download completes, run the installer and complete the steps to install .NET on your machine.
When the installer completes, open a new terminal and run the
dotnet command. This will verify .NET is correctly installed and ready to use.
Now that you've got .NET installed, let's build your first app with our step-by-step tutorial.
When your download completes, open a terminal and run the following commands to extract the SDK and make the commands available at the terminal.
mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-5.0.202-osx-x64.pkg -C $HOME/dotnet
The previous commands will only make the .NET SDK commands available for the terminal session in which it was run.
You can edit your shell profile to permanently add the commands. There are several different shells available for Linux and each has a different profile. For example:
Edit the appropriate source file for your shell and add
:$HOME/dotnet to the end of the existing
PATH statement. If no
PATH statement is included, add a new line with
export DOTNET_ROOT=$HOME/dotnet to the end of the file.