Question on the assembly directive in templates
Posted: Mon 28 Jul 2014 22:25
Entity Developer 5.7.397
Windows 7 x64
Visual Studio 2013
In the documentation for the template language, it lists the following directive:
<#@ assembly name="System.Data" #>
In my solution, I have this organization:
Solution
DataAccess project
...edml files, templates, views
Extensions project
...some classes I want to add to template
Other projects
....
Is there a way to use relative paths for the @ assembly directive? I tried several variations, but could not get them to work.
I wanted something like:
<#@ assembly name="..\Extensions\bin\debug\Extensions.dll"#>
Or even better, one where I don't have to specify whether it's release or debug build.
In the meantime, I'm just copying the Extensions.dll to c:\Temp and referencing it there in the template.
<#@ assembly name="C:\Temp\Extensions.dll"#>
Windows 7 x64
Visual Studio 2013
In the documentation for the template language, it lists the following directive:
<#@ assembly name="System.Data" #>
In my solution, I have this organization:
Solution
DataAccess project
...edml files, templates, views
Extensions project
...some classes I want to add to template
Other projects
....
Is there a way to use relative paths for the @ assembly directive? I tried several variations, but could not get them to work.
I wanted something like:
<#@ assembly name="..\Extensions\bin\debug\Extensions.dll"#>
Or even better, one where I don't have to specify whether it's release or debug build.
In the meantime, I'm just copying the Extensions.dll to c:\Temp and referencing it there in the template.
<#@ assembly name="C:\Temp\Extensions.dll"#>