VS2017中的T4模板在哪里 [英] Where is T4 Template in VS2017

查看:351
本文介绍了VS2017中的T4模板在哪里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在尝试在Visual Studio 2017中使用T4模板,但我无法找到它在VS2017 IDE中。


请帮助我。提前致谢。




Mayank Mani Pandey India

解决方案

嗨MAYANK MANI PANDEY,


欢迎来到MSDN论坛。


你的意思是
T4模板 T4文字模板


要在Visual Studio 2017中添加T4文本模板,您可以添加文本模板文件到您的项目并为其命名,其扩展名为
.tt 。请右键单击解决方案资源管理器中的项目,在添加新项<中选择
添加新项目... / strong>对话框选择文本模板。




参考:

https://docs.microsoft.com/en-us/visualstudio/modeling/design-time-code-generation-by-using-t4- text-templates#creating-a-design-time-t4-text-template


Regar ds,


Judyzh


Hi All,

I am trying to work on T4 Template in Visual Studio 2017, but I am unable to find it in VS2017 IDE.

Kindly help me out. Thanks in advance.


Mayank Mani Pandey India

解决方案

Hi MAYANK MANI PANDEY,

Welcome to the MSDN forum.

Do you mean T4 Template is T4 Text Template?

To add T4 Text Template in Visual Studio 2017, you could add a text template file to your project and give it a name that has the extension .tt. Please right click the project in Solution Explorer, choose Add, New Item…, in the Add New Item dialog box select Text Template.

Reference: https://docs.microsoft.com/en-us/visualstudio/modeling/design-time-code-generation-by-using-t4-text-templates#creating-a-design-time-t4-text-template

Regards,

Judyzh


这篇关于VS2017中的T4模板在哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆