Page 1 of 1

Question on the assembly directive in templates

Posted: Mon 28 Jul 2014 22:25
by billster6809
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"#>

Re: Question on the assembly directive in templates

Posted: Thu 31 Jul 2014 10:51
by MariiaI
Currently, it is possible to:
- specify the full path to the assembly;
- specify the name of the assembly, if it is available in the GAC.

We will consider the possibility of using relative paths in such scenarios and inform you about the results as soon as possible.

Re: Question on the assembly directive in templates

Posted: Thu 14 Aug 2014 12:52
by MariiaI
The possibility to use relative paths to assemblies in code generation templates is implemented.
New build of Entity Developer 5.7.422 is available for download!
It can be downloaded from http://www.devart.com/entitydeveloper/download.html (trial version) or from Registered Users' Area (for users with active subscription only).
For more information, please refer to http://forums.devart.com/viewtopic.php?f=32&t=30168.