ambiguous references in DotNET35?

Posts   
 
    
magic
User
Posts: 125
Joined: 24-Nov-2008
# Posted on: 18-Sep-2009 21:05:07   

Hi,

I switched my .NET project as well LGP generation from .NET20 to .NET35. First the LinqSupportClasses couldn't be found, so I had to switch from the drivers (.dll) in the DotNET20 folder to the ones in the .NET35 folder. At this point also switched the DQE and ORMSupportClasses to be retrieved from DotNET35.

Now I have the following trouble or similar all over place (~ 2000 errors):

'ISerializable' is an ambiguous reference between 'System.Runtime.Serialization.ISerializable' and 'SD.LLBLGen.Pro.ORMSupportClasses.ISerializable' in LGP.HelperClasses.ResultsetFields

'SerializationInfo' is an ambiguous reference between 'System.Runtime.Serialization.SerializationInfo' and 'SD.LLBLGen.Pro.ORMSupportClasses.SerializationInfo' in LGP.HelperClasses.ResultsetFields


'StreamingContext' is an ambiguous reference between 'System.Runtime.Serialization.StreamingContext' and 'SD.LLBLGen.Pro.ORMSupportClasses.StreamingContext'
in LGP.HelperClasses.ResultsetFields

What am I missing here? confused

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39861
Joined: 17-Aug-2003
# Posted on: 18-Sep-2009 22:18:35   

You referenced the CF ORMSupportclasses. You shouldn't reference those, just keep referencing the same ORMSupportClasses as .NET 3.5 is simply the 2.0 CLR with some extra assemblies.

It also is better if you regenerate the code for .NET 3.5 as well, so you get the extra code for .NET 3.5 / linq generated.

Frans Bouma | Lead developer LLBLGen Pro
magic
User
Posts: 125
Joined: 24-Nov-2008
# Posted on: 19-Sep-2009 00:29:46   

Otis wrote:

You referenced the CF ORMSupportclasses. You shouldn't reference those, just keep referencing the same ORMSupportClasses as .NET 3.5 is simply the 2.0 CLR with some extra assemblies.

It also is better if you regenerate the code for .NET 3.5 as well, so you get the extra code for .NET 3.5 / linq generated.

thanks for the quick response.

I got the extra code for .NET 3.5 / linq and that was exactly what threw me off: The project was not compiling because of the missing linq library. I thought that since the linq lib is in the DotNET35 driver folder, I should also use the other two libraries from this folder instead of the one in DotNET20 ...

Now that I changed it back, everything works again.

Thank you.