.NET CLI简单使用

官方文档https://docs.microsoft.com/zh-cn/dotnet/core/tools/?tabs=netcore2x

创建新项目

查看能创建什么类型的项目

dotnet new --help

比如新建一个控制台项目

dotnet new console -o AppName

恢复项目的依赖项和工具

dotnet restore

运行

dotnet run

构建

dotnet build

测试

dotnet test

猜你喜欢

转载自www.cnblogs.com/stardust233/p/12356689.html