T4(* .tt)关闭默认自动文件 [英] T4 (*.tt) Turn off default autogen file

查看:71
本文介绍了T4(* .tt)关闭默认自动文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我写了一个生成多个cs文件的tt文件,这些文件被添加到我的项目中。该文件的名称是"Mappings.tt"。生成文件的名称是user.cs,customer.cs等。但默认情况下,从tt文件生成一个Mappings.cs。这是自动生成的。有没有办法关闭这个自动生成的文件?


VB.NET& C#.NET

Hi,

i wrote a tt-file that generates multiple cs files, that are added to my project. The name of the file is "Mappings.tt". The names of the generates files are user.cs, customer.cs and so on. But by default there is a Mappings.cs generated from the tt-file. This is the auto generated one. Is there a way to turn this autogenerated file off?

Nic


VB.NET & C#.NET

推荐答案

假设您的项目中有.tt文件,则无法避免创建默认输出文件。它实际上是由Visual Studio为T4提供的自定义工具生成的。
Assuming you have .tt file in your project, there is no way to avoid creation of the default output file. It is actually produced by Visual Studio for the custom tool T4 provides.


这篇关于T4(* .tt)关闭默认自动文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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