Top "T4" questions

T4 stands for Text Template Transformation Toolkit and is Microsoft's template based text generation framework included with Visual Studio.

Get Visual Studio to run a T4 Template on every build

How do I get a T4 template to generate its output on every build? As it is now, it only …

visual-studio tfs msbuild t4
How can I resolve this error: Loading the include file 'EF.Utility.CS.ttinclude' returned a null or empty string

How can I resolve these errors: Loading the include file 'EF.Utility.CS.ttinclude' returned a null or empty string. …

visual-studio entity-framework-5 t4 .net-framework-version
how can I get intellisense in a T4 template?

When trying out these tutorials (T4 Tutorial: Creating reusable code generation templates) I noticed that although I was using plain …

visual-studio visual-studio-2008 intellisense t4
Metadata file not found - Data.Entity.Model

Anyone having similar problem, while creating webservices? Compiling transformation: Metadata file 'D:\Program Files\VS2013\Common7\Tools..\IDE\Microsoft.Data.…

entity-framework visual-studio-2013 t4 ado.net-entity-data-model
T4 template adding assembly of existing project in solution

Hi I need to add the assembly of an an existing project in my solution in my T4 Template file. …

c# t4
Cannot find Microsoft.VisualStudio.TextTemplating assembly

I am doing some work with T4 (Text Template Transformation Toolkit) and am trying to get to a point where …

.net visual-studio t4
Get referenced project's path in T4 template?

I have a solution that has a few projects in it. I'd like to create some T4 templates in one …

c# visual-studio-2010 t4
Syntax Highlighting for .tt files?

Is there any way to tell Visual Studio 2010 to enable syntax highlighting for .tt files? I do have a directive …

.net visual-studio visual-studio-2010 t4
Running a T4 template using C#

I have T4 template (mycode.tt) which generates a cs file. I usually right click the tt file and select …

c# t4 customtool
Can't reference an assembly in a T4 template

I have the following code in a tester class in my main assembly, PocoGenerator. This assembly is supposed to use …

visual-studio visual-studio-2010 t4