Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > ExampleModel does not exist in TextTemplate?
 

ExampleModel does not exist in TextTemplate?

Hi,

I’m using Text Template in DSL but the corresponding output file can not be generated because of an error which appears when I click �span>Run Custom Tool�

Here is the code in my LanguageSmReport.tt file:


Code Snippet



<#@ template inherits="Microsoft.VisualStudio.TextTemplating.VSHost.ModelingTextTransformation" debug="true"#>

<#@ output extension=".txt" #>

<#@ LanguageSm processor="LanguageSmDirectiveProcessor" requires="fileName='Sample.sm'" #>

<#

foreach (ExampleElement element in this.ExampleModel.Elements)

{

#>

<#= element.Name #>

<#

}

#>



And I get this error:

Error 1 Compiling transformation: 'Microsoft.VisualStudio.TextTemplatingD65E8B553131FFCF6822A432A78A7F02.GeneratedTextTransformation' does not contain a definition for 'ExampleModel'

Does anybody know how to fix this error?


zzof  Tuesday, June 26, 2007 1:41 PM
Hi,

This is really a DSL Tools related question and not a GAX one. Please try posting to the DSL Tools forum instead.

thanks,
-V.
vga  Thursday, June 28, 2007 2:52 AM
Hi,

This is really a DSL Tools related question and not a GAX one. Please try posting to the DSL Tools forum instead.

thanks,
-V.
vga  Thursday, June 28, 2007 2:52 AM

You can use google to search for other answers

Custom Search

More Threads

• GAT/GAX for VS2005 RTM released!
• about gudance automation toolkit
• How do I add an empty project folder?
• Call a recipe
• looking for simple example of class generation based on database schema
• Newbie question: <AssemblyName>me.myDAL</AssemblyName> not working?
• How do you include a folder that has been excluded from a project?
• This forum is moving â€?week of 5/27
• Same error but I have a diffrent version of the assembly.
• Parameters not getting updated on unfolding projects programatically in a GP