How to do it...

  1. Open your favorite browser and navigate to https://www.microsoft.com/net/download/macos.
  1. Click on the Download .NET Core 2.1.x SDK (at the time of writing, the version is 2.1.105) button.
  1. Now, in the download dialog box, select Save.
  2. Now double-click on the file from the downloaded location (typically in the Downloads folder) and follow the instructions to install.
  3. After installation, you should be good to go. Let's open a terminal and test the installation. (Applications | Utilities | Terminal).
  4. Now, in the terminal, type the following command:
      $ dotnet --version
  1. If everything is OK, you should see output like this: ...

Get .NET Standard 2.0 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.