CentOS 7 安裝.NET Core__.net

來源:互聯網
上載者:User

翻譯自 .Net Core 官網 1.安裝.Net Core SDK

在開始之前,請從系統中移除所有以前的.net core 版本。
為了能夠在CentOS或 Oracle Linux安裝.Net Core: 首先準備好先決條件

sudo yum install libunwind libicu
下載.net Core SDK二進位檔案
curl -sSL -o dotnet.tar.gz https://go.microsoft.com/fwlink/?LinkID=809131
解壓這些檔案到系統
sudo mkdir -p /opt/dotnet && sudo tar zxf dotnet.tar.gz -C /opt/dotnet
dotnet添加到PATH環境變數添。
sudo ln -s /opt/dotnet/dotnet /usr/local/bin
2. 初始化代碼

初始化一個Hello World 應用程式範例!

mkdir hwappcd hwappdotnet new
3. 運行程式

第一行命令將根據project.json還原指定的包檔案,第二行命令則實際啟動程式:

dotnet restoredotnet run
準備就緒!

你現在已經使用.NET core運行在你的機器上。
你可以建立一個ASP.NET Core網站,或者通過訪問 .NET Core on GitHub 擷取更多的樣本。瀏覽一下.NET文檔去學習更多關於.NET Core, 使用我們的interactive online tutorials或者通過社區學些更多有關.NET Core的諮詢。 需要工具?

Visual Studio Code 可以運行在Linux,並且全面支援.NET Core。 下載免費的 Visual Studio Code 並安裝從市場下載 C# extension ,以便開始最佳體驗。

相關文章

聯繫我們

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