dotnet 常用命令



.NET 命令行接口 (CLI) 工具是用于开发、生成、运行和发布 .NET 应用程序的跨平台工具链。


一.常用的dotnet

  1. 创建控制台
dotnet new console
  1. 创建 webapi 并指定名字
dotnet new webapi -n Api
  1. 创建的时候,指定固定的sdk
dotnet new webapi -n Api -f netcoreapp3.1
  1. 从模板安装
dotnet new -i Microsoft.DotNet.Web.Spa.ProjectTemplates::2.0.0

参考文献

[1] 微软官方网站 https://docs.microsoft.com/zh-cn/dotnet/core/tools/

猜你喜欢

转载自blog.csdn.net/zhaozhao236/article/details/112994389