1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| $ dotnet --version (顯示Version) $ dotnet new [type of project] -n [project name] $ dotnet new console (new console project) $ dotnet new mvc (new mvc project) $ dotnet new webapi (new api project) $ dotnet add package (加入NeGet套件)
$ dotnet add package Microsoft.EntityFrameworkCore.SqlServer $ dotnet add package Microsoft.EntityFrameworkCore.Design $ dotnet add package Microsoft.EntityFrameworkCore.Tools
$ dotnet build (建置) -o [ouput path]
$ dotnet clean
$ dotnet run
$ dotnet publish & -c Release & -r win10-x64 --self-contained & -r win10-x64 --no-self-contained
|