【.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
标签:Core,CLI,codegenerator,Add,Controller,3.1,dotnet,aspnet 来源: https://www.cnblogs.com/braink-1400/p/12229887.html