install dotnet core linux : How to install .Net Core on Ubuntu

install dotnet core linux

Install .NET Core for Ubuntu 14.04, Ubuntu 16.04, Ubuntu 16.10 & Linux Mint 17, Linux Mint 18 (64 bit)

Roadmap to install dotnet core linux.

  1. install Visual studio code as a code editor  – (skip to step#5 if  already have any kind of code editor)
  2. install dotnet core Linux runtime
  3. Create/run a basic hello world app

NET Core 2.x is supported on the following Linux 64-bit (x86_64 or amd64) distributions/versions:

  • Red Hat Enterprise Linux 7
  • CentOS 7
  • Oracle Linux 7
  • Fedora 25, Fedora 26
  • Debian 8.7 or later versions
  • Ubuntu 17.04, Ubuntu 16.04(I have this on my machine), Ubuntu 14.04
  • Linux Mint 18, Linux Mint 17
  • openSUSE 42.2 or later versions
  • SUSE Enterprise Linux (SLES) 12 SP2 or later versions

ubuntu visual studio code install

step#1 Download Visual Studio Code deb format as shown in image below using this  to have ubuntu visual studio code install


.net core linux

Step#2 Open terminal by clicking this icon and type terminal ubuntu visual studio code install

.net core linux

 Step#3 Navigate to the Download directory and install visual studio Code using these commands.

.net core linux

Step#4 check if the visual studio is installed by typing code in the search bar. you can see visual studio code is installed.

.net core linux


Now ubuntu visual studio code install is complete.

Step#5   install curl. open terminal  and type commands


Step#6  Register the Microsoft Product key as trusted. Run the following two commands

Step#7   Set up the desired version host package feed. Based on Operating system run the respective command. I am using Ubuntu 16.04 so I will use the third option     – see the command in image below from step#6 and Step#7

.net core linux

Step#8 Install.NET Core

Step# 9 check.NET core installed Version

.net core linux

Step# 10  Create a sample console app using CLI command below

.net core linux

Step# 11 Let’s run this console app

.net core linux

Step#12 Open the folder in Visual Studio and you can see program.cs

.net core linux

.net core linux

here is a nice info about  When to choose Microsoft .NET Core ?

For more detail, tutorials and learning continue here


Comments are closed.