Use .NET 2.0 dll's in LPT template

Posts   
 
    
Remco
User
Posts: 4
Joined: 07-Dec-2005
# Posted on: 07-Dec-2005 12:10:25   

Hi,

I tried to use my own dll in an LPT template, but get the following error:

 Error CS0009, at line: 0, pos: 0: Metadata file 'c:\Program Files\Solutions Design\LLBLGen Pro2005\Plugins\APIPrototype.dll' could not be opened -- 'Version 2.0 is not a compatible version.'

The dll is a .NET 2.0 library developed with VS2005.

Does this mean that it only works with .NET 1.1 dll's? Or is there something I did wrong? Are the dll's for LLBLGen also the .NET 1.1 versions and not the 2.0?

Thanks, Remco.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39786
Joined: 17-Aug-2003
# Posted on: 07-Dec-2005 12:23:33   

This will work if you run llblgen pro on .NET 2.0. Please remove / comment out the 1.1.4322 hint in the llblgenpro.exe.config file and be sure 2.0.50727 is stated in that config file. Then run llblgen pro's designer and the generation of the code should work. Also, if you run them from template studio, do the same thing, but then in the templatestudio.exe.config file.

Frans Bouma | Lead developer LLBLGen Pro
Remco
User
Posts: 4
Joined: 07-Dec-2005
# Posted on: 07-Dec-2005 13:22:38   

Hi Frans,

Thanks for the answer. After removing this line and changing "v2.0.50215" to "v2.0.50727" I don't get the error anymore.

Remco.