Top "T4" questions

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

How to get t4 files to build in visual studio?

When I build my c# solution the .tt files will not create the .cs file outputs. But if I right …

visual-studio t4
Reflection with T4 get assemblies

I want to get all of class in the specific assembly this is my code var assembly=Assembly.GetExecutingAssembly(); var …

c# reflection t4
Is there code generation API for TypeScript?

When I needed to generate some C# code, for example DTO classes from xsd schema, or an excel table, I've …

typescript code-generation t4 roslyn
T4 Compiling transformation: The type or namespace name 'Template' could not be found

I am trying to generate a Xaml file using Template T4 and defining a reusable file Xaml.tt like this &…

visual-studio-2010 code-generation t4 t4-toolbox
Using types in a T4 template that exist in the same project as the template

I'm working on my first T4 code generation tool to add some Stored Procedure helper code to my project. I've …

c# .net vb.net code-generation t4
MSBuild support for T4 templates in Visual Studio 2017 RTM

In Visual Studio 2015, I'm using the NuGet package Unofficial.Microsoft.VisualStudio.TextTemplating.14.0.0 which allows me to transform T4 templates directly …

c# visual-studio msbuild t4 visual-studio-2017
Can I use T4 programmatically from C#?

I am writing software that produces C# code. Mostly I am using StringTemplate and StringBuilder. Is there any way to …

c# t4 template-engine
T4 template to Generate Enums

I'm looking at creating a T4 template to generate enums of my database. Essentially, I want the same feature as …

linq-to-sql t4
Visual Studio T4 vs CodeSmith

I've been using CodeSmith for the past 2 years and love what it does for me. However, I also know about …

c# visual-studio t4 codesmith generative-programming
Accessing Projects via DTE in C# T4 Template

I'm currently trying to iterate over all of my projects (sharepoint) to get all feature guids into an file. there …

c# visual-studio-2012 t4 envdte