【翻譯】ASP.NET Core 入門

來源:互聯網
上載者:User

標籤:macos   strong   新版本   建立   spn   有關   net   time   sof   

ASP.NET Core 入門

原文地址:Introduction to ASP.NET Core         譯文地址:asp.net core 簡介           翻譯:ganqiyin

 

[!注意]

這些說明適用於最新版本的ASP.NET Core。 舊版本入門查看? 請參閱1.1版本教程。.

  1. 安裝 .NET Core.

2.建立一個新的 .NET Core 項目.

在macOS和Linux上,開啟一個終端視窗。 在Windows上,開啟命令提示字元。

dotnet new razor -o aspnetcoreapp

  

  1. 運行應用程式.

    使用以下命令運行應用程式:

    cd aspnetcoreappdotnet run

      

  2. 瀏覽 http://localhost:5000

  3. 開啟 Pages/About.cshtml 並修改頁面以顯示訊息 "Hello, world! The time on the server is @DateTime.Now":

    [!code-htmlMain]

  4. 瀏覽 http://localhost:5000/About 並驗證修改.

下一步

有關入門教程, 查看 ASP.NET Core 教程

有關 ASP.NET Core 概念和架構的介紹, 請參閱 ASP.NET Core 簡介 and ASP.NET Core 基礎知識.

ASP.NET Core應用程式可以使用.NET Core或.NET Framework Base Class Library和runtime。 有關更多資訊, 請參閱 .NET Core 與 .NET Framework 之間的選擇.

【翻譯】ASP.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.