Hi,
You can use the Texttemplates (T4 templates) to generate artifacts out of your diagram you created with your DSL. This artifacts can, for example, be HTML files or C# code. So this is the way to use your DSL as a "code generator".
You can see a little example of a T4 template in your project in the experimental environment . There should be a file that is called "<yourLanguage>Report.ReportTemplate".
Some more information on the T4 syntax can be found on the blog of Gareth (http://blogs.msdn.com/garethj/archive/2005/06/01/T4Syntax.aspx).
I am not sure what the error is that you get. If you get the error on the "<yourLanguage>Report.ReportTemplate" you might have a look at the file name that is in the template. Make sure this file name is the same as the diagram you created as part of the project in your experimental environment.
If this is nit the case, maybey you can provide the actual errormessage you get so somebody on this forum can help you a litte further.
Hope this helps!
Edward |