Article Directory
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
- Create console
dotnet new console
- Create
webapi
and specify the name
dotnet new webapi -n Api
- When creating, specify a fixed SDK
dotnet new webapi -n Api -f netcoreapp3.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/