Preprocessed template compile error - Dispose(bool)': no suitable method found to override

Sep 17, 2015 at 7:59 PM
I have been using T4Toolbox with the custom tool 'TextTemplatingFileGenerator' and everything has been working great.

Now I am currently in the process of trying to start using preprocessed templates (with the TextTemplatingFilePreProcessor custom tool property setting).
I added the TextTemplating and TextTemplating.Interfaces references. I included a copy of the T4Toolbox.dll in my local solution and referenced it as well.

To keep things simple, I reduced the content of my template content to the following few lines:

<#@ template language="C#" hostspecific="true" #>
<#@ output extension="txt" #>
<#@ include file="" #>

The issue is that I am getting the following error:
'T4ToolboxPreProcessedTEmplates.TextTemplate1.Dispose(bool)': no suitable method found to override

Can someone help me get past this?
Sep 21, 2015 at 5:03 PM
I got past this by using the T4 Toolbox / Template item. I still have an issue with TextTransformation.Host being null but will post a different question to address that.
Marked as answer by wrgorman on 9/21/2015 at 10:03 AM