I am trying to write T4 template to create wrapper classes for classes created by SubSonic 3 (implementing IActiveRecord). But when I compile my template I get following error:
Compiling transformation: Metadata file 'SubSonic.Core' could not be found
I'm including SubSonic.Core in my settings file. <#@ assembly name="SubSonic.Core" #>
and then importing the namespaces like <#@ import namespace="SubSonic.Schema"#>
and <#@ import namespace="SubSonic"#>
What I'm doing wrong? Do I need to put SubSonic.Core.dll into GAC?
Have you tried putting
.dll
at the end of the assembly name?(Make sure that SubSonic.Core.dll is in the same directory).
There is an article on the T4 Assembly directive that may help you: