Question on the assembly directive in templates

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
billster6809
Posts: 29
Joined: Mon 27 Jan 2014 21:08

Question on the assembly directive in templates

Post by billster6809 » 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"#>

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: Question on the assembly directive in templates

Post by MariiaI » Thu 31 Jul 2014 10:51

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.

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: Question on the assembly directive in templates

Post by MariiaI » Thu 14 Aug 2014 12:52

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.

Post Reply