|
I'm getting an error when using the new T4 Toolbox for VS2012 on an existing set of templates, some of which include other templates in the same project.
I've created a simple repro of the issue (please forgive the unavoidable Skydrive landing page... <sigh>):
http://sdrv.ms/VyjKqN
Note that TextTemplate2 tries to <#@ include file="TextTemplate1.tt" #> and this fails with:
An Exception was thrown while processing the template. The following Exception was thrown:
T4Toolbox.TransformationException: T4 Toolbox transformation context was not properly initialized. Add <#@ include="T4Toolbox.tt" #> directive to your text template.
Server stack trace:
at T4Toolbox.TransformationContext.get_Current()
at T4Toolbox.TransformationContext.Cleanup()
at Microsoft.VisualStudio.TextTemplatingFCDB4ED959BACACD78225C7A7823D5822707A1B1CB6E24BC95E18F6903396276F44BD4CC8EF01EE80FC4B7F651DC8E8D0F148053C5F166CEE3EB34F8524BF09F.GeneratedTextTransformation.Dispose(Boolean disposing) in c:\_dev\T4HostSpecificIssue\TextTemplate2.tt:line 6
at Microsoft.VisualStudio.TextTemplating.TextTransformation.Dispose()
at Microsoft.VisualStudio.TextTemplating.TransformationRunner.PerformTransformation()
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
This is new behavior after upgrading from T4 Toolbox 10, where there was no failure.
I don't see any obvious sign of any underlying cause, and am unaware of any diagnostics I can use to get a handle on why the include is failing. Thanks for any help!
|