API Reference for T4 Text Templates


This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, use the version selector at the top left. We recommend upgrading to Visual Studio 2019. Download it here

The Text Templating API lets you invoke and customize the transformation of text templates.


Namespace Purpose
Microsoft.VisualStudio.TextTemplating Contains classes for the text template transformation functionality. The text template transformation engine is integrated into Visual Studio, and transforms text template files into generated text output files.
Modeling Provides text transformation facilities related to UML models and domain-specific languages, such as access to Visual Studio ModelBus.
Microsoft.VisualStudio.TextTemplating.VSHost Provides access to the text templating service in Visual Studio.