After upgrading my TDS solution to use the new
version 3 of the transformation files, on generation an error message would pop up and the following error appeared in the generated file.
An error occured while generating code for item '/sitecore/templates/MyTemplate'.
T4 Template: C:\Projects\MyProject\TDS.Core\Code Generation Templates\glassv3item.tt
Errors:
Compiling transformation: Invalid token 'this' in class, struct, or interface member declaration
Compiling transformation: Method must have a return type
Compiling transformation: Identifier expected
Compiling transformation: 'GeneratedTextTransformation.Write()' must declare a body because it is not marked abstract, extern, or partial
This error is occurring because the
glassv3item.tt template as an extra line added at the bottom of the file. Removing this will allow the code to generate without error.
 |
TDS glassv3item new line |
Solution via Ryan Tuck.
No comments:
Post a Comment