Hi I need to add the assembly of an an existing project in my solution in my T4 Template file. The problem is that my T4 template is in a project called Project.WebApi and the class that I need in my T4 template is inside a project called Project.Common.WebApi.
I have tryed importing the namespace like this:
<#@ import namespace="Project.Common.WebApi.T4TemplateAttribute" #>
But I get this error:
The type or namespace name 'Project' could not be found (are you missing a using directive or an assembly reference?)
I have tryed adding the assembly like this:
<#@ assembly name="Project.Common.WebApi" #>
And I got this error:
Compiling transformation: Metadata file 'Project.Common.WebApi' could not be found
My project that contains the T4Template (Project.WebApi) has a reference to the Project.Common.WebApi but from what I read T4Template does not use the references in the projects.
How can I solve this issues?