VS2017中的T4模板在哪里

编程入门 行业动态 更新时间:2024-10-24 06:31:26
本文介绍了VS2017中的T4模板在哪里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好,

我正在尝试在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模板在哪里

本文发布于:2023-11-14 00:00:10,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1585654.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:模板

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!