- Add the dotnet apt-get feed
In order to install. NET Core on Ubuntu or Linux Mint, you need to first set up the Apt-get feed this hosts the package yo u need.
Ubuntu 14.04/linux Mint 17
- sudo sh-c ' echo ' Deb [ARCH=AMD64] https://apt-mo.trafficmanager.net/repos/dotnet-release/trusty main ">/etc/apt/ Sources.list.d/dotnetdev.list '
- sudo apt-key adv--keyserver apt-mo.trafficmanager.net--recv-keys 417a0893
- sudo apt-get update
Ubuntu 16.04
- sudo sh-c ' echo ' Deb [ARCH=AMD64] https://apt-mo.trafficmanager.net/repos/dotnet-release/xenial main ">/etc/apt/ Sources.list.d/dotnetdev.list '
- sudo apt-key adv--keyserver apt-mo.trafficmanager.net--recv-keys 417a0893
- sudo apt-get update
- 2Install. NET Core SDK
Before you start and remove any previous versions of the. NET Core from the your system by using this script.
To. NET Core on Ubuntu or Linux Mint, simply use Apt-get.
- sudo apt-get install dotnet-dev-1.0.0-preview2-003131
- 3Initialize some code
Let's initialize a sample Hello world application!
- mkdir Hwapp
- CD Hwapp
- dotnet New
- 4Run the App
The first command would restore the packages specified in the Project.json file, and the second command would run the actual Sample
Ps:https://www.microsoft.com/net/core#ubuntu
. NET Core Install for Ubuntu 14.04