Where are the built in MVC scaffolding T4 templates?

可紊 提交于 2019-12-22 18:42:59

问题


With the newest MVC tools, when I add a controller, I get scaffolding for the controller code as well as the CRUD Views. I'm not asking about how to override templates. I understand that I can override the T4 scaffolding templates, but I would like to see the existing built-in scaffolding templates that support the default code generation.

Where can I find the T4 code that supports the built-in/default scaffolding for MVC Views and Controllers?


回答1:


Per Hansleman:

C:\Program Files (or x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\CSharp (or Visual Basic)\Web\MVC (or 2) 3\CodeTemplates


来源:https://stackoverflow.com/questions/7249414/where-are-the-built-in-mvc-scaffolding-t4-templates

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!