简体   繁体   中英

How to override MVC "Add Controller"

I am trying to create a visual studio extension to create a new wizard or override the current "Add Controller".

添加控制器向导

I Have the extension made and everything set up, but i cant seem to use any code generators in .net framework, i tried the System.Web.Razor.Generator and the Microsoft.AspNet.Scaffolding.

Does anyone done this before?

Thanks in advance

This should let you add your own template to the wizard so you can easily add replicated templates.

You can also add or edit views as well

So in this article we have seen how to modify the existing code or adding our own custom code generation for scaffolding column for generating a Controller class and view in ASP.Net MVC3 using T4 Code Generation.

在此处输入图片说明

https://www.c-sharpcorner.com/UploadFile/b19d5a/modifying-or-adding-the-default-code-generationscaffolding/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM