来源: https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/create
1. 下载安装
安装成功后,打开cmd → dotnet,命令可识别代表安装成功
2.创建app
dotnet new console -o myApp
自动创建myApp文件夹,进入该文件夹,可查看到如下内容
Program.cs内容:
using System;
namespace myApp
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
3.运行app
4.编辑Program.cs文件再运行以实现运行功能