Installing the .NET Core SDK on macOS
Installing .NET on macOS is necessary because it provides a cross-platform development framework that allows developers to build and run applications on macOS using the .NET technology stack.
Steps
-
Firstly, we need to install the Homebrew Package Manager. Copy and paste the command given on the website into your terminal.
You will need to enter in your password into the terminal to install Homebrew. Whilst you may type into the keyboard, no password characters will appear for security reasons.
-
Now use
brew
from your terminal to to install the .NET Core SDK:You will also need to link the
dotnet
command into/usr/local/bin
: -
To test if the .NET Core was installed successfully, see if the
dotnet
command exists.If you’re seeing
command not found
, you may you can execute the following command to fix it:Should you have any other installation issues, review the .NET core release notes or raise an issue on GitHub.
-
In Visual Studio Code you should install the following extensions:
You can do this from the command line by executing:
You can also search for them by opening up the extensions panel. You can use the ⌘+x to open the panel. Then search for the name and click install: