.NET 入门Get started with .NET

本文介绍如何创建和运行“Hello World!”This article teaches you how to create and run a "Hello World!" .NET 应用。.NET app.

如果不确定什么是 .NET,请从 .NET 简介开始。If you're unsure what .NET is, start with the .NET introduction.

创建应用程序Create an application

首先,在计算机上下载并安装 .NET SDKFirst, download and install the .NET SDK on your computer.

然后,打开某一终端,如 PowerShell、命令提示符或 Bash 。Next, open a terminal such as PowerShell, Command Prompt, or bash. 输入以下 dotnet 命令,创建并运行 C# 应用程序:Enter the following dotnet commands to create and run a C# application:

dotnet new console --output sample1
dotnet run --project sample1

可以看到以下输出:You see the following output:

Hello World!

祝贺你!Congratulations! 你现已创建了一个简单的 .NET 应用程序。You've created a simple .NET application.

后续步骤Next steps

按照分步教程或观看 YouTube 上的 .NET 101 视频,开始开发 .NET 应用程序。Get started developing .NET applications by following a step-by-step tutorial or by watching .NET 101 videos on YouTube.