Migrating to .NET 2.0

Posts   
 
    
hplloyd
User
Posts: 191
Joined: 29-Oct-2004
# Posted on: 07-Jun-2007 09:27:25   

Hi,

I have an application that works fine .NET 1.1 using LLBLGen2.0, I am now migrating the application to .NET 2.0

I am using the 3rd Party manager templates (and have done for some years now), and I have used the version that is designed for .NET 2.0

My issue is when I generate the files in LLBL it all works fine and I get 3 projects

SABER.Engine.DatabaseSpecific SABER.Engine.DatabaseGeneric SABER.Engine.BusinessObject -> this contains all the manager classes

When I build a solution with SABER.Engine.DatabaseSpecific and SABER.Engine.DatabaseGeneric it compiles perfectly, however if I add in the SABER.Engine.BusinessObject project, it build perfectly the first time then I get loads of error on the second and subsequent builds

The errors are all very similar and say things like

Error   1   The type or namespace name 'EntityClasses' does not exist in the namespace 'SABER.Engine' (are you missing an assembly reference?)  C:\Data\NET2\Bespoke_Clean\CURRENT\SABER.Engine\BusinessObjects\ManagerBaseClasses\ MenuItemMenuMapManagerBase.cs   4   20  SABER.Engine.BusinessObjects

and

Error   2   The type or namespace name 'FactoryClasses' does not exist in the namespace 'SABER.Engine' (are you missing an assembly reference?) C:\Data\NET2\Bespoke_Clean\CURRENT\SABER.Engine\BusinessObjects\ManagerBaseClasses\ MenuItemMenuMapManagerBase.cs   5   20  SABER.Engine.BusinessObjects

and

Error   3   The type or namespace name 'HelperClasses' does not exist in the namespace 'SABER.Engine' (are you missing an assembly reference?)  C:\Data\NET2\Bespoke_Clean\CURRENT\SABER.Engine\BusinessObjects\ManagerBaseClasses\ MenuItemMenuMapManagerBase.cs   6   20  SABER.Engine.BusinessObjects

However I have included a reference to both the SABER.Engine.DatabaseSpecific and SABER.Engine.DatabaseGeneric projects so I am not missing any references.

If I look further down the error list I get additional warnings such as

Warning 4   The type 'SABER.Engine.BusinessObjects.ManagerBaseClasses.ManagerBase' in 'C:\Data\NET2\Bespoke_Clean\CURRENT\SABER.Engine\BusinessObjects\ManagerBaseClasses\ ManagerBase.cs' conflicts with the imported type 'SABER.Engine.BusinessObjects.ManagerBaseClasses.ManagerBase' in 'c:\Data\NET2\Bespoke_Clean\CURRENT\SABER.Engine\DatabaseGeneric\bin\Debug\ SABER.Engine.DatabaseGeneric.dll'. Using the one in 'C:\Data\NET2\Bespoke_Clean\CURRENT\SABER.Engine\BusinessObjects\ ManagerBaseClasses\ManagerBase.cs'.  C:\Data\NET2\Bespoke_Clean\CURRENT\SABER.Engine\BusinessObjects\ ManagerBaseClasses\MenuItemMenuMapManagerBase.cs   13  44  SABER.Engine.BusinessObjects

Can any one explain what I might be doing wrong?

Many thanks

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 07-Jun-2007 09:44:53   

I think the following thread is similar to yours (almost similar titles simple_smile ): http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=7847

(EDIT) If you already are using the new manager templates. Then most probably you are missing a reference to your generated projects, or you are referrencing the wrong/old version.