Ubuntu16.04下的NetCore環境搭建

來源:互聯網
上載者:User

標籤:控制台   運行   tor   lease   程式   server   環境搭建   tar   sof   

跨平台系列匯總:http://www.cnblogs.com/dunitian/p/4822808.html#linux

VSCode安裝:http://www.cnblogs.com/dunitian/p/6661644.html

搜狗拼音安裝:http://www.cnblogs.com/dunitian/p/6662374.html

官方參考連結:

離線下載: https://www.microsoft.com/net/download/linux

.NET Core 命令 https://docs.microsoft.com/zh-cn/dotnet/articles/core/tools/index

1.設定源並更新 https://www.microsoft.com/net/core#linuxubuntu

2.安裝SDK

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 hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893

sudo apt-get update

1.建立一個控制台程式 dotnet new console -o xxx

2.用VSCode開啟

3.Ctrl+`開啟終端

4.第一次開啟CS檔案會載入一些調試時用的包

5.載入依賴包 dotnet restore,運行程式 dotnet run

6.自動建立的設定檔

7.運行控制台

8.ok了,vscode用起來可能沒有VS嗨皮,但是真的比其他編輯器好太多,慢慢習慣吧

9.建立MVC項目 dotnet new mvc -o MyMVC

10.載入依賴包dotnet restore 運行 dotnet run

11.瀏覽器開啟該地址~運行效果

Ubuntu16.04下的NetCore環境搭建

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.