【.Net Core】DotNet CLI command (使用命令创建Controller、View等)
版本: dotnet core 3.1
PS:需要安装nuget package
dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design --version 3.1.0
安装
spnet-codegenerator
dotnet tool install -g dotnet-aspnet-codegenerator
Add Controller
dotnet aspnet-codegenerator controller -name TestController
Add View
dotnet aspnet-codegenerator view Index Empty
这里有个小彩蛋~✨✨