Intent.Modules
Intent.Modules copied to clipboard
PreProcessor gives errors with include directives
Simptom
This is encountered in the Module Builder for Intent Architect 2.0+
Issue 1
This is caused because the TemplateGenerator used in the PreProcessor templates are returning null
s and is not taking the Error
property into account.
Issue 2
The errors that are encountered are:
Underlying problem
This is because my T4 template has an include
directive to include a ttinclude
file which it doesn't seem to recognize for some reason.
Perhaps its because it doesn't have any paths set in the IncludePaths
property.
Workaround
The workaround for now is to turn off the PreProcessor templates.
I suppose this template can be setup to run only once since its primary purpose is to run the TemplateGenerator on creation of the template and doesn't need to run at all after that. So one could do a File exists check on execution.