其他分享
首页 > 其他分享> > 【.Net Core】DotNet CLI command (使用命令创建Controller、View等)

【.Net Core】DotNet CLI command (使用命令创建Controller、View等)

作者:互联网

官方文档地址:>>>https://docs.microsoft.com/en-us/aspnet/core/fundamentals/tools/dotnet-aspnet-codegenerator?view=aspnetcore-3.1

版本: 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