在Ubuntu搭建.NET Core環境

來源:互聯網
上載者:User

標籤:

Ubuntu16.04配置.net core環境 Ubuntu 16.04 desktop:http://www.ubuntu.com/desktop本次是用vmware安裝該系統。 ps:系統裝好後預設解析度是800*600,有點小,通過介面調整解析度遇到很尷尬的問題,確定按鈕被遮住,無法確定。只能通過終端命令調整了:xrandr -s 15差不多夠大了。 下面配置環境參考文檔:https://www.microsoft.com/net/core#ubuntu  1.配置dotnet apt-get feed 置命令如下:sudo sh -c ‘echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list‘sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893sudo apt-get update    2.安裝.NET Core SDKsudo apt-get install dotnet-dev-1.0.0-preview2-003121  
3.初始化程式

 
在新建立的hwapp檔案夾下產生了兩個檔案,Program.cs為程式檔案,Project.json為設定檔
 
4.運行

 
環境成功搭建,並成功運行!

 

在Ubuntu搭建.NET Core環境

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.