tangible T4 Directives

 

The tangible T4 Editor extends the set of existing T4 Directives that can be used inside T4 Text Template files. This list gives an overview on additional directives that can be used when working with the tangible T4 Editor.

 

The documentation of the basic T4 Text Template Directives is availabl in this MSDN Article.

 

assemblyForIntelliSenseOnly

Loads an assembly only for IntelliSense availability and not transformation execution.

includeForIntellisenseOnly

Provides IntelliSense for an include file without actually including it, because that will result in a double include.

intellisenseLanguage

Use this directive in .ttinclude templates to give tangible T4 editor a hint what language the control code is written in, so it can provide correct IntelliSense and syntax highlighting. By default C# is used.

newAppDomain

Ensures a new AppDomain is created for each template transformation.

TangibleActivityDiagram

Allows access to a tangible Activity Diagram (.taact) object model from within a T4 template.

TangibleClassDiagram

Allows access to a tangible Class Diagram (.tacl) object model from within a T4 template.

TangibleComponentDiagram

Allows access to a tangible Component Diagram (.tacmpt) object model from within a T4 template.

TangiblePersistentObjectDiagram

Allows access to a tangible Persistent Object Diagram (.tasl) object model from within a T4 template.

TangibleStateDiagram

Allows access to a tangible State Diagram (.tastate) object model from within a T4 template.

TangibleUseCaseDiagram

Allows access to a tangible Use Case Diagram (.tauc) object model from within a T4 template.