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?