dotnet common commands



The .NET Command Line Interface (CLI) tool is a cross-platform tool chain for developing, generating, running, and publishing .NET applications.


1. Commonly used dotnet

  1. Create console
dotnet new console
  1. Create webapiand specify the name
dotnet new webapi -n Api
  1. When creating, specify a fixed SDK
dotnet new webapi -n Api -f netcoreapp3.1
  1. Install from template
dotnet new -i Microsoft.DotNet.Web.Spa.ProjectTemplates::2.0.0

references

[1] Microsoft official website https://docs.microsoft.com/zh-cn/dotnet/core/tools/

Guess you like

Origin blog.csdn.net/zhaozhao236/article/details/112994389