I should clarify that the error is not in compiling the NHibernate project but when I try and compile my projects against the resulting DLL's.
I have found out that if I use the ShowBuildMenu to build things I don't have this problem. On Dec 16, 12:21 pm, DBLWizard <[email protected]> wrote: > Howdy All, > > After I build the NHibernate source I start getting a compile error in > my codesmith project. At first I thought this was related to uses of > different .net frameworks ... as changing the framework seems to make > the problem go away. But I've done a little more investigating and I > don't believe that's the real reason. If I reference the 3.2 GA > libraries that are in the NHibernate-3.2.0.GA-bin.zip everything > compiles fine. But if I open the source from NHibernate-3.2.0.GA- > src.zip and compile it I get these errors: > > Error 1 'ADRPNH.Data.ADRPNHDataContext.CreateSession()': return type > must be 'NHibernate.ISession' to match overridden member > 'CodeSmith.Data.NHibernate.NHibernateDataContext.CreateSession()' D: > \Development\US Bank\ADRP\Eagle\Phase 1\Shared\ADRPNH\ADRPNH.Data > \ADRPNHDataContext.generated.cs 48 37 ADRPNH.Data > > Error 2 'ADRPNH.Data.ADRPNHDataContext.CreateStatelessSession()': > return type must be 'NHibernate.IStatelessSession' to match overridden > member > 'CodeSmith.Data.NHibernate.NHibernateDataContext.CreateStatelessSession()' > D:\Development\US Bank\ADRP\Eagle\Phase 1\Shared\ADRPNH\ADRPNH.Data > \ADRPNHDataContext.generated.cs 53 46 ADRPNH.Data > > You might ask why I need to compile the source... because I really > need whats in nhibernate-nhibernate-core-3.2.0GA-98-g08aeab4.zip and > the same problem results when I compile this source ... so I went back > to the 3.2 base to make sure it wasn't something in the -98 version. > > As I said whats odd is if I compile the NHibernate source in the 4.0 > framework and make all the necessary changes to get that to compile > (ISet and HashedSet references and [SecurityCritical] Attributes on > all the GetObjectData and GetRealObject calls) the errors goes away. > > But I really don't want to have to do all those changes just to get an > updated version of the NHibernate libraries. Anybody got any ideas? > > thanks > > dbl
