Hi,
I have recently loaded up a LLBLBenPro-based solution that I haven't looked at since we upgraded to LLBLGen Pro v2.5 (from v2.0), but it will now not compile.
For every single Entity class in the project, I get these compile errors:
"'ISerializable' is an ambiguous reference between 'System.Runtime.Serialization.ISerializable' and 'SD.LLBLGen.Pro.ORMSupportClasses.ISerializable'"
and
'SerializationInfo' is an ambiguous reference between 'System.Runtime.Serialization.SerializationInfo' and 'SD.LLBLGen.Pro.ORMSupportClasses.SerializationInfo'
As an example, here the first part of the code that is generated for each of our entities:
///////////////////////////////////////////////////////////////
// This is generated code.
//////////////////////////////////////////////////////////////
// Code is generated using LLBLGen Pro version: 2.5
// Code is generated on: Thursday, 31 January 2008 4:46:44 p.m.
// Code is generated using templates: SD.TemplateBindings.SharedTemplates.NET20
// Templates vendor: Solutions Design.
// Templates version:
//////////////////////////////////////////////////////////////
using System;
using System.ComponentModel;
using System.Collections.Generic;
#if !CF
using System.Runtime.Serialization;
#endif
using System.Xml.Serialization;
using CBSCanterbury.DAL.BossProd.Adapter;
using CBSCanterbury.DAL.BossProd.Adapter.HelperClasses;
using CBSCanterbury.DAL.BossProd.Adapter.FactoryClasses;
using CBSCanterbury.DAL.BossProd.Adapter.RelationClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
namespace CBSCanterbury.DAL.BossProd.Adapter.EntityClasses
{
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces
// __LLBLGENPRO_USER_CODE_REGION_END
/// <summary>
/// Entity class which represents the entity 'IbCard'.<br/><br/>
///
/// </summary>
[Serializable]
public partial class IbCardEntity : CommonEntityBase, ISerializable
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces
// __LLBLGENPRO_USER_CODE_REGION_END
{
It is the ISerializable that appears in the line:
public partial class IbCardEntity : CommonEntityBase, ISerializable
that is causing the compile errors.
We are using LLBLGenPro 2.5, generating C# 2.0 using the standard adapter templates. Note that the solution was originally created using code generated using LLBLGenPro v2.0, but we subsequently upgraded to v2.5. I have regenerated the code using v2.5 but that didn't help. I have also uninstalled v2.0 using Control Panel but no luck.
I have checked the References for each project in the solution and as far as I can see they are referencing v2.5 of the SD.LLBLGen.Pro.ORMSupportClasses.NET20 assembly.
I am assuming its some simple reference problem but I just cant work it out.
Thanks in advance
Regards
Brett