0% found this document useful (0 votes)
67 views5 pages

Roadmap: Ubuntu Visual Studio Code Install Step#1 Download Visual Studio Code Deb Format As Shown in Image Below Using

The document provides steps to install .NET Core on Ubuntu Linux by installing Visual Studio Code as an editor, installing the .NET Core runtime, and creating a basic "Hello World" application. It lists supported Linux distributions and provides detailed steps to download VS Code, register the Microsoft product key, set up the package feed, install .NET Core SDK, check the version, generate a sample app, and run it.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
0% found this document useful (0 votes)
67 views5 pages

Roadmap: Ubuntu Visual Studio Code Install Step#1 Download Visual Studio Code Deb Format As Shown in Image Below Using

The document provides steps to install .NET Core on Ubuntu Linux by installing Visual Studio Code as an editor, installing the .NET Core runtime, and creating a basic "Hello World" application. It lists supported Linux distributions and provides detailed steps to download VS Code, register the Microsoft product key, set up the package feed, install .NET Core SDK, check the version, generate a sample app, and run it.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 5

INSTALL DOTNET CORE LINUX : HOW TO INSTALL .

NET CORE ON UBUNTU

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  https://code.visualstudio.com/download  to have ubuntu visual studio code install

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

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

1 cd downloads
2 sudo dpkg -i filename.deb

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

Now ubuntu visual studio code install is complete.


Step#5   install curl. open terminal  and type commands

1 sudo apt install curl

 
Step#6  Register the Microsoft Product key as trusted. Run the following two commands:
1 curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
2 sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
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

1 Ubuntu 17.10
2 sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-
3 artful-prod artful main" > /etc/apt/sources.list.d/dotnetdev.list'
4 sudo apt-get update
5  
6 Ubuntu 17.04
7 sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-
8 zesty-prod zesty main" > /etc/apt/sources.list.d/dotnetdev.list'
9 sudo apt-get update
1  
0  
1 Ubuntu 16.04 / Linux Mint 18
1 sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-
1 xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
2 sudo apt-get update
1  
3 Ubuntu 14.04 / Linux Mint 17
1 sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-
4 trusty-prod trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
1 sudo apt-get update
5
1
6

Step#8 Install.NET Core

1 sudo apt-get install dotnet-sdk-2.1.4

Step# 9 check.NET core installed Version

1 dotnet –versión
Step# 10  Create a sample console app using CLI command below

1 dotnet new console -o hellowordap

Step# 11 Let’s run this console app

1 cd helloworldapp
2 dotnet run

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

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

You might also like