1.安装好SDK
2.打开CMD,输入dotnet,显示如何成功,
Options:
-h|–help Display help.
–info Display .NET Core information.
–list-sdks Display the installed SDKs.
–list-runtimes Display the installed runtimes.
path-to-application:
The path to an application .dll file to execute.
//注意如需要环境变量配置请自行配置
**3.**在CMD里输入dotnet --help,会显示SDK的指令
4. CMD输入dotnet new --help,查看项目模板。
**5.**创建一个控制台应用项目,CMD输入:dotnet new console --name 项目名
**6.**查看项目目录:ls -al
或者打开文件查看,就可以看到项目工程目录了
**7.**cmd 输入dotnet --info 显示dotnet code 信息版本等
**8.**cmd工程目录下输入dotnet build构建程序,编译成二进制
**9.**dotnet run 运行程序或者dotnet watch run 类似node的nodemon
**10.**引用第三方库dotnet restore,之后再编译一次:dotnet build
11.运行编译好的二进制程序文件,dll,切换到项目的bin\Debug\netcoreapp3.1下,输入dotnet 程序名.dll就可以运行