码迷,mamicode.com
首页 > Web开发 > 详细

.NET Core Install for Ubuntu 14.04

时间:2016-10-01 12:21:10      阅读:221      评论:0      收藏:0      [点我收藏+]

标签:

  1.  

    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 that hosts the package you need.

    Ubuntu 14.04 / Linux Mint 17

    1. sudo sh -c ‘echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list‘
    2. sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893
    3. sudo apt-get update

    Ubuntu 16.04

    1. sudo sh -c ‘echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list‘
    2. sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893
    3. sudo apt-get update
  2. 2

    Install .NET Core SDK

    Before you start, please remove any previous versions of .NET Core from your system by using this script.

    To .NET Core on Ubuntu or Linux Mint, simply use apt-get.

    1. sudo apt-get install dotnet-dev-1.0.0-preview2-003131
  3. 3

    Initialize some code

    Let‘s initialize a sample Hello World application!

    1. mkdir hwapp
    2. cd hwapp
    3. dotnet new
  4. 4

    Run the app

    The first command will restore the packages specified in the project.json file, and the second command will run the actual sample:

     

     

    ps:https://www.microsoft.com/net/core#ubuntu

     

.NET Core Install for Ubuntu 14.04

标签:

原文地址:http://www.cnblogs.com/ganmk--jy/p/5925517.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!