Apr 18, 2010 at 11:39 AM
Edited Apr 19, 2010 at 8:23 AM
I installed VS2010 RTM last week and I migrated our VS2008 solution successfully. Unfortunately, I also got the same
VolatileAssembly issue mentioned in this case, so I installed the lastest version of T4Toolbpox (V10.3), but the error won't go away.
The situation is as follows:
- We have a template project where the base templates are stored.
- We have multiple projects which include T4-Templates in differently deep folders. These T4-Templates are all including the base templates using a relative path.
So to illustrate this, let's assume we have a Project T with a base template and two project A und B, each with one template (which include the base template):
In TemplateA.tt, we include the base template like this: <#@ include file="..\T\BaseTemplate.tt" #>
And in TemplateB.tt, we include it like this: <#@ include file="..\..\T\BaseTemplate.tt" #>
In BaseTemplate.tt, we need to reference the assembly from Project A, so we put this line into BaseTemplate.tt:
<#@ VolatileAssembly processor="T4Toolbox.VolatileAssemblyProcessor" Name="A.dll" #>
As mentioned, when I tried to run TemplateA or TemplateB, I always get the same error: VolatileAssembly directive: Assembly 'A.dll' resolved as 'A.dll' could not be found.
Note: All project assemblies are compiled into a common output directory, not into individual bin/debug folders
Thanks for further help,