what is and where can I find MvcTextTemplateHost

后端 未结 4 521
太阳男子
太阳男子 2021-01-19 07:07

I would like to know what this is MvcTextTemplateHost. I have this in my create.tt but I cant find it in my bin folder (searching with object viewer). I read up and found ou

4条回答
  •  死守一世寂寞
    2021-01-19 07:48

    MvcTextTemplateHost is "Host" of MVC 3.0 (Add>View and Add>Controller) Dialog and maintain user interactions:

    so it is not available outside of the tool. When you provide "Scaffolding" template (a .tt file) a manager passes these user inputs to host so host will have those properties.

    The class is packaged in: ($VSDIR)\Common7\IDE\Microsoft.VisualStudio.Web.Mvc.3.01.dll

    Hope it helps.

提交回复
热议问题