1 dotnet new

2 創建code 程序
dotnet new console

using System;
namespace cli
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
3 還原 dotnet restore

4 編譯 dotnet build

5 運行 donet run

dotnet core 2.0
添加 package
6 dotnet add package Microsoft.AspNetCore.Cors --version 2.0.1

刪除package
7 dotnet remove package Microsoft.AspNet.WebApi.Cors

