Click to Rate and Give Feedback

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Domain-Specific Language Tools
Command-Line Tools for Text Templates

Updated: November 2007

By transforming a text template, you can generate text output such as code, HTML, and reports from a model. For more information, see Generating Artifacts By Using Text Templates.

Domain-Specific Language Tools provide two command-line tools that you can use to transform text templates:

  • TextTransform.exe

  • DslTextTransform.cmd

TextTransform.exe is a command-line tool that you can use to transform a text template. When you call TextTransform.exe, you specify the name of a text template file as an argument. TextTransform.exe calls the text transformation engine and processes the text template. For more information, see TextTransform.

TextTransform.exe is located in the following directory:

<root>\Program Files\Common Files\Microsoft Shared\Text Templating\1.1

DslTextTransform.cmd is a script that calls TextTransform.exe and runs it with common options. You can use DslTextTransformation.cmd to automate a nightly build of your Domain-Specific Language Tools projects.

DslTextTransform.cmd is located at:

        <Visual Studio SDK Installation Path>\VisualStudioIntegration\Tools\Bin

You can specify the following arguments as input to DslTextTransform.cmd:

  • The output directory of the domain model project.

  • The output directory of the designer definition project.

  • The location of the text template file.

DslTextTransform.cmd processes the specified text template file using the default directive processors and assemblies (that is, those used with .dsldd, .dsldm, or .dslsetup). If you create custom directive processors, you can create your own batch file that calls TextTransform.exe (for example, CustomTextTransform.bat). In this batch file, you can specify your assemblies and the associated custom directive processors.

For more information, see Security of Text Templates.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Different versions of TextTransform.exe      jimbomanq   |   Edit   |   Show History

Two versions of TextTransform.exe currently exist. It appears that the TextTransform.exe in the 1.1 folder is able to generate code using the .NET 2.0 framework. The TextTransform.exe in the 1.2 folder can reference the .NET 3.5 framework if "v3.5" is added to the language directive in T4 templates (e.g. "C#v3.5").

C:\Program Files\Common Files\Microsoft Shared\TextTemplating\1.1\TextTransform.exe

C:\Program Files\Common Files\Microsoft Shared\TextTemplating\1.2\TextTransform.exe

Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker