.NET Core Installation

.NET Core Installation

In this section we will look at how to get .NET Core 3.1 installed on a machine. This guide is was created in August 2020, if this no longer works please leave a comment.

In order to install .NET Core we will first need to find out if your machine runs a 32 or 64 bit operating system

Windows OS Identification

If you are on Windows, you should type “About your PC” in your start menu and select it.

Windows details

Under Device specifications you should see a field for System Type, this will either read 64-bit operating system or 32-bit operating system – make a note of this for later.

MacOS Identification

If you run mac as your operating system click the apple logo in the top left of the screen and select “about this mac”

Mac OS details

If the entry for processor reads “Core Duo” then you have a 32bit operating system – otherwise you have a 64bit operating system. Make a note of this for later.

Long Term Support (LTS) Versions

The installation of .NET 3.1 will be demonstrated in this tutorial. The reason for this version is due to it being a long term support version of the framework. This means that this version will at least be supported until December the 3rd 2022. In this time there might be small patches to improve security and stability.

Long term support for c sharp

Windows Installation

  • Head to https://dotnet.microsoft.com/download/dotnet-core
  • Look for the entry labelled .NET Core 3.1 and click on the link
  • Here you will see some more information on the most recent releases. Under the “Build apps – SDK” column identify the newest release and the table containing links to the installers and binaries.
  • Under the installers column identify the Windows Row and select “x32” or “x64” depending on your operating system type. Click on this link.
  • This will prompt a download of an exe file, save it on your local machine.
  • Navigate to where you saved the exe file, right click this file and click open.
  • On the welcome page of the installer press install.
  • If you get a security prompt then press yes to install
  • Click close on the success page to complete the installation.
  • Open up an instance of command prompt
  • Enter dotnet –version in the prompt to validate your installation.

MacOS Installation

  • Open a web browser and enter https://dotnet.microsoft.com/download/dotnet-core into the address bar
  • Look for the entry labelled .NET Core 3.1 and click on the link
  • Here you will see some more information on the most recent releases. Under the “Build apps – SDK” column identify the newest release and the table containing links to the installers and binaries.
  • Under the installers column identify the MacOS Row and select “x64”
  • This will prompt a download of a .pkg file, save this to a location on your computer such as your desktop.
  • Navigate to the folder where you saved the file and open it.
  • Click continue on the Introduction section
  • Change the installation location if you are not satisfied with it, otherwise click install on the installation type section
  • Enter your password or use touch ID to continue with the installation
  • Click close to finish the installation
  • Open terminal on your mac you can do this by pressing cmd + space and then typing terminal
  • In terminal type dotnet –version
  • If terminal responds with a version number starting with 3.1.xxx then you have successfully installed .NET Core 3

Installing .NET Core on Linux

The installation instructions for Linux will be slightly different than that for Windows or MacOS, this is because Linux users are required to use a package manager to install .NET Core 3.1 on their machines.

For this demo, I will be using one of the most popular distributions of Linux – Ubuntu. The demonstration should also work on debian based distributions of linux.

  • Open a web browser and enter https://dotnet.microsoft.com/download/dotnet-core into the address bar
  • Look for the entry labelled .NET Core 3.1 and click on the link
  • Here you will see some more information on the most recent releases. Under the “Build apps – SDK” column identify the newest release and the table containing links to the installers and binaries.
  • Click on the linux package manager instructions.
  • Scroll to the bottom of the pack to see the ubuntu section, select the Install .NET core on Ubuntu link
  • Open up a new terminal window.
  • Locate your version of Ubuntu
  • Copy and paste the wget command into your terminal to add the microsoft package signing key to your machine.
  • Enter “sudo dpkg -i packages-microsoft-prod.deb “ into your terminal, this will add the package repository
  • To install .NET Core SDK use the following commands. If you successfully install the SDK there is no need to install the .NET Core runtime.
  • “sudo apt-get update”
  • “sudo apt-get install -y apt-transport-https”
  • “sudo apt-get update”
  • “sudo apt-get install -y dotnet-sdk-3.1”In the terminal enter the command dotnet –version to validate your install