Assembly references in LPT templates

Posts   
 
    
basik
User
Posts: 123
Joined: 20-Aug-2012
# Posted on: 29-Jul-2014 11:23:36   

Is there any way to make assembly references in LPT templates dynamic - so that the installed version can be determined at runtime?

So that this


<$ C:\Program Files (x86)\Solutions Design\LLBLGen Pro v4.2\TaskPerformers\SD.LLBLGen.Pro.LptParser.dll $>

could be something like this


<$ SD_EF_GeneralUtils.LptParser $>
or 
<$ SD.LLBLGen.Pro.LptParser.dll $>

I have read this part of the SDK https://www.llblgen.com/documentation/4.1/SDK/hh_start.htm and was wondering if the "LLBLGenPro.exe.config's probing tag" might be an option.

Thank you.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39760
Joined: 17-Aug-2003
# Posted on: 29-Jul-2014 14:03:25   

The string specified between <$ $> is specified as a referenced assembly on the compiler directive. If the assembly is in scope (i.e. in the probing path) it will be found and it will be loaded. If you specify a full path, it will always be found of course.

It's not possible when compiling in code, to specify a folder where to look for referenced assemblies as there is when you compile on the command line with csc, so a full path OR a location in a probed path (so .NET's fusion finds it) is required.

Frans Bouma | Lead developer LLBLGen Pro
basik
User
Posts: 123
Joined: 20-Aug-2012
# Posted on: 29-Jul-2014 20:04:52   

Thank you. I used used the template binding precedence to determine which template/reference combination to select.