.NET Core 指南.NET Core Guide

.NET Core開放原始碼的一般用途開發平台,由 Microsoft 與 GitHub 上的 .NET 社群共同維護。.NET Core is an open-source, general-purpose development platform maintained by Microsoft and the .NET community on GitHub. 它可以跨平台支援 Windows、macOS 與 Linux,並可用於建置裝置、雲端與 IoT 應用程式。It's cross-platform (supporting Windows, macOS, and Linux) and can be used to build device, cloud, and IoT applications.

請參閱關於 .NET Core以深入了解 .NET Core,包括其特性、支援的語言與架構,亦即主要 API。See About .NET Core to learn more about .NET Core, including its characteristics, supported languages and frameworks, and key APIs.

查看 .NET Core 教學課程 以了解如何建立簡單的 .NET Core 應用程式。Check out .NET Core Tutorials to learn how to create a simple .NET Core application. 只需要幾分鐘,您就可以啟動並執行您的第一個應用程式。It only takes a few minutes to get your first app up and running. 若要在您的瀏覽器中嘗試 .NET Core,請查看 C# 中的數字線上教學課程。If you want to try .NET Core in your browser, look at the Numbers in C# online tutorial.

下載 .NET Core 2.2Download .NET Core 2.2

下載 .NET Core 2.2 SDK 以在您的 Windows、macOS 或 Linux 電腦上嘗試 .NET Core。Download the .NET Core 2.2 SDK to try .NET Core on your Windows, macOS, or Linux machine. 若您想要使用 Docker 容器,請瀏覽 dotnet/coreVisit dotnet/core if you prefer to use Docker containers.

若您要尋找另一個 .NET Core 版本,所有 .NET Core 版本都可以在 .NET Core 下載 找到。All .NET Core versions are available at .NET Core Downloads if you're looking for another .NET Core version.

.NET Core 2.2.NET Core 2.2

最新版本是最新版本是 .NET Core 2.2The latest version is .NET Core 2.2. 新功能包括:架構相機部署、啟動攔截程序、使用 Azure SQL 的 AAD 驗證,以及對 Windows ARM32 的支援。New features include: framework-dependent deployments, startup hooks, AAD authentication with Azure SQL, and support for Windows ARM32.

建立您的第一個應用程式Create your first application

安裝 .NET Core SDK 之後,請開啟命令提示字元。After installing the .NET Core SDK, open a command prompt. 鍵入下列 dotnet 命令以建立並執行 C# 應用程式。Type the following dotnet commands to create and run a C# application.

dotnet new console
dotnet run

您應該會看到下列輸出:You should see the following output:

Hello World!


Microsoft 在 Windows、macOS 與 Linux上 都支援 .NET Core。.NET Core is supported by Microsoft, on Windows, macOS and Linux. 每年都為它推出安全性與品質更新數次,通常是一個月一次。It's updated for security and quality several times a year, typically monthly.

.NET Core 二進位發行版本是在 Azure 中由 Microsoft 維護的服務上建置及測試,而且享有與任何 Microsoft 產品一樣的支援。.NET Core binary distributions are built and tested on Microsoft-maintained servers in Azure and supported just like any Microsoft product.

Red Hat 在 Red Hat Enterprise Linux (RHEL) 上支援 .NET CoreRed Hat supports .NET Core on Red Hat Enterprise Linux (RHEL). Red Hat 從原始碼建置 .NET Core 並在 Red Hat 軟體集合中提供。Red Hat builds .NET Core from source and makes it available in the Red Hat Software Collections. Red Hat 與 Microsoft 共同作業以確保 .NET Core 可在 RHEL 上正確運作。Red Hat and Microsoft collaborate to ensure that .NET Core works well on RHEL.