Glass card t4 empty or empty string

I am trying to configure Glass Mapper to create Sitecore elements. I followed every tutorial I could find, but I get this error when trying to generate code:

“Downloading the include file 'Helpers.tt' returns a null or empty string. The conversion will not start.

A file is created, but the word ErrorGeneratingOutput is repeated over and over.

Screenshots:

Visual studio error output

TDS Code Generation Settings

TDS Project setup

0
source share
2 answers

Like what Ehab suggested, you might also need to delete the empty line at the end GlassV3Header.tt, otherwise you will get an error message:

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 removing the extra line solves the problem.

+2

?

unblock

+1

All Articles