大家好,
我正在尝试在Visual Studio 2017中使用T4模板,但我无法找到它在VS2017 IDE中。
请帮助我。提前致谢。
Mayank Mani Pandey India
解决方案
嗨MAYANK MANI PANDEY,
欢迎来到MSDN论坛。
你的意思是 T4模板是 T4文字模板?
要在Visual Studio 2017中添加T4文本模板,您可以添加文本模板文件到您的项目并为其命名,其扩展名为 .tt 。请右键单击解决方案资源管理器中的项目,在添加新项<中选择 添加,新项目... / strong>对话框选择文本模板。
参考: docs.microsoft/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: docs.microsoft/en-us/visualstudio/modeling/design-time-code-generation-by-using-t4-text-templates#creating-a-design-time-t4-text-template
Regards,
Judyzh
更多推荐
VS2017中的T4模板在哪里
发布评论