T4 Templates and Visual Studio Item Templates

一曲冷凌霜 提交于 2019-12-10 10:16:49

问题


Is it possible to create a Visual Studio item template that generates from a T4 template?

My google-fu does not seem powerful enough to yield an answer!


回答1:


Yes, you need to use GAX for that. It has a (rather limited implementation of) custom T4 host that allows you to use T4 as a template language.




回答2:


Yes you can, actually ASP.NET MVC uses this approach when creating View item from Controller item

All the Best Muse VSExtensions



来源:https://stackoverflow.com/questions/805979/t4-templates-and-visual-studio-item-templates

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