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

最新文章

  1. shell中创建mysql库和执行sql脚本
  2. yii create url (二)
  3. gcc 4.8.3 install centos
  4. C#中判断子窗体是否存在
  5. Codeforces 372
  6. HDU 4571 Travel in time ★(2013 ACM/ICPC长沙邀请赛)
  7. android LayoutInflater和inflate()方法的用法(转载)
  8. Ural-1018 Binary Apple Tree(树形dp+分组背包)
  9. struts2+hibernate环境搭建
  10. Ajax,设置默认焦点以及判断是否为空
  11. Ubuntu升级到14.04
  12. python 之变量
  13. AIO5销售发货单numeric算数溢出报错:将numeric转换成数据类型numeric时出现算数溢出错误
  14. 安装 VMware CentOS Xmanager Xshell
  15. FreeMarker案例
  16. MinGW GCC 6.3.0 2017年3月份出炉啦
  17. RGB、YUV和HSV颜色空间模型
  18. windows与mac下安装nginx
  19. [转]权限系统与RBAC模型概述[绝对经典]
  20. 1月4日笔记 vi编辑器

热门文章

  1. dotnet 通过 WMI 获取系统信息
  2. 微软软件开发技术二十年回顾-MFC篇
  3. poj/OpenJ_Bailian - 2528 离散化+线段树
  4. boostrap-非常好用但是容易让人忽略的地方【3】:clearfix
  5. 用Qt写的简单屏保程序
  6. Servlet 的面试题
  7. struts2中的数据类型自动转换
  8. Java面向对象程序设计第9章1-9
  9. mysql主从之基于atlas读写分离
  10. mysqldump主从复制