Hi Joe,
make sure your LibraryCode.tt (pay attention, file name is LibraryCode.tt and not TextFile1.txt) looks like this:
===========================
<#@ template inherits="Microsoft.VisualStudio.TextTemplating.VSHost.ModelingTextTransformation"#> <#@ ClassDiagramExample processor="ClassDiagramExampleDirectiveProcessor" requires="fileName='Sample.testcd'" #>
<# foreach(ModelType type in this.ModelRoot.Types) { #> <#= type.Name#> <# } #>
===========================
The first two lines are called directives - they tell the text templating engine what to do with the rest of the code and text.
Please let me know if this helps.
Thanks
Kirill |