T4 模板和 Visual Studio 项模板
是否可以创建从 T4 模板生成的 Visual Studio 项模板?
我的 google-fu 似乎不够强大,无法给出答案!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,您需要使用 GAX 。 它有一个(相当有限的实现)自定义 T4 主机,允许您使用 T4 作为模板语言。
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.
ASP.NET MVC 在从控制器项创建视图项时使用这种方法
是的,你可以,实际上
Muse VS 扩展
Yes you can, actually ASP.NET MVC uses this approach when creating View item from Controller item
All the Best
Muse VSExtensions