Friday, September 29, 2017

Sitecore TDS code generation - failed to resolve include text

After upgrading a Sitecore solution's Glass Mapper to the latest version, installing the latest TDS, along with adding in new code generation templates (tt files). The following error was occurring:
Failed to resolve include text for file:C:\Projects\MyProject\TDS.Core\Code Generation Templates\GeneralExtensions.tt
Looking at the item tree where these templates were added, it appeared that the file was referenced as generalextensions.tt - with all lowercase.


By updating the include references in the other files, this error no longer occurred and code would generate the models as expected. An example of the include to update is:
<#@ include file="generalextensions.tt" #>

No comments:

Post a Comment