T4 模板和 Visual Studio 项模板

发布于 2024-07-19 02:06:48 字数 80 浏览 6 评论 0原文

是否可以创建从 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

两人的回忆 2024-07-26 02:06:48

是的,您需要使用 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.

把梦留给海 2024-07-26 02:06:48

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文