zoukankan      html  css  js  c++  java
  • .NET Core Install for Ubuntu 14.04

    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

  • 相关阅读:
    计算日期之差
    大数相加
    NY-字符串替换
    HDU1004之总是wa的细节问题
    指针在字符串简单应用
    mybatis~SQL映射
    java实现递归(1)
    apk、图片下载工具(1)
    签到规则工具(1)
    短信发送工具(2)
  • 原文地址:https://www.cnblogs.com/ganmk--jy/p/5925517.html
Copyright © 2011-2022 走看看