0

I'm trying to setup Glass Mapper to generate my Sitecore items. I've followed every tutorial I could find, but receive this error when attempting to generate the code:

"Loading the include file 'Helpers.tt' returned a null or empty string. The transformation will not be run."

A file is generated but repeats the word "ErrorGeneratingOutput" over and over.

Screenshots:

Visual Studio error output

TDS Code Generation Settings

TDS Project setup

Kris B
  • 3,436
  • 9
  • 64
  • 106

2 Answers2

2

As well as what Ehab has suggested, you may also have to remove the empty line at the end of GlassV3Header.tt otherwise you will get a error:

An error occured while generating code for item '/sitecore/templates'.
T4 Template: D:\Project\XYZ\TDS.Master\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: Type expected

Crytic, but deleting the extra line solves the issue.

jammykam
  • 16,940
  • 2
  • 36
  • 71
  • I had the same issue and had to delete the extra line at the end as well as go to each line and delete the extra spaces at the end of each line. Not sure why I had to delete the extra spaces at end of each line, but after doing that, it fixed my issues. – cpp Feb 04 '15 at 13:27
1

Have you tried to click the unblock button in the properties window of the file?

unblock

Ehab ElGindy
  • 395
  • 2
  • 7