Where can I find the API specification for MvcTextTemplateHost?

后端 未结 5 1782
迷失自我
迷失自我 2021-01-02 18:53

I\'m trying to use a custom T4 template for adding new Controllers to a MVC 3 project. I have my own template as Scott Hanselman wrote on http://www.hanselman.com/blog/Modif

5条回答
  •  灰色年华
    2021-01-02 19:04

    This is the closest thing to a spec we have but it is way out of date: http://blogs.msdn.com/b/webdevtools/archive/2009/01/29/t4-templates-a-quick-start-guide-for-asp-net-mvc-developers.aspx

    You can use reflection or, you could take a look at the view templates, especially the identical helper methods at the bottom of each file, to see most of what is available in the MvcTextTemplateHost class.

提交回复
热议问题