文章出處

Ubuntu 下載地址:http://www.ubuntu.org.cn/download/desktop

注:目前 CLI 的安裝命令只支持 Ubuntu 14.04,暫不支持 Ubuntu 14.10 版本。

如果 Ubuntu 14.10 安裝 CLI,會出現下面的錯誤:

安裝運行步驟:http://dotnet.github.io/getting-started/

1. Add the new apt-get feed

分別執行下面的三個命令:

sudo sh -c 'echo "deb [arch=amd64] http://apt-mo.trafficmanager.net/repos/dotnet/ 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

2. Install .NET Core

執行命令:

sudo apt-get install dotnet=1.0.0.001598-1

dotnet 命令:

3. Install Git

執行命令:

sudo apt-get install git-core

git 命令:

4. Run the app

克隆 cli-samples

git clone https://github.com/aspnet/cli-samples

轉到 HelloMvc、HelloMvcApi、HelloWeb、HelloWebFull 目錄下,執行命令(程序包還原,真不是一般慢啊,幾個小時了還沒好):

dotnet restore

運行程序:

dotnet run

文章列表




Avast logo

Avast 防毒軟體已檢查此封電子郵件的病毒。
www.avast.com


arrow
arrow
    全站熱搜
    創作者介紹
    創作者 大師兄 的頭像
    大師兄

    IT工程師數位筆記本

    大師兄 發表在 痞客邦 留言(0) 人氣()