Resource Page DescriptionThis sample shows different approaches to generating code using the Text Templating engine that ships in the VS SDK. In order to build the sample, you will need Visual Studio 2008 and the Visual Studio 2008 SDK (although you could adapt the sample to work in VS2005). The sample contains a "TT ReadMe.txt" file that explains its use.
It compares three different approaches:
- an unstructured approach, where all of the template code is in a single file;
- a more structured approach using include files; and
- a third approach that moves some of the code out of the text templates into a separate assembly, and also creates an additional object model to simplify code generation.
|