You can use NH binaries compiledin NET3.5 with a project compiled with C#4 compiler and pointing to .NET4. You don't need to recompile NH.
-- Fabio Maulo El 25/10/2010, a las 10:48, Waqar Sadiq <[email protected]> escribió: > I have some software that we have written and had been using on .NET > 3.5. Our software uses Spring 1.3.0 and NHibernate 2.1.2. > > I am trying to move our software to .NET 4.0. I am currently running > on a 64bit Windows 7 using Visual Studio 2010. When I build all our > software for .NET 3.5., everything runs fine. When I build our > software with .NET 4.0, I get the following exception. > > InnerException: System.BadImageFormatException > Message=The parameters and the signature of the method don't > match. > Source=mscorlib > > In order to solve this problem, I am lookign for NHibernate 2.1.2 that > is built for .NET 4.0. I could do it myself but right of the bat, I > am gettign quite a few compilation errors. Is there a build of > NHibernate already built for .NET 4.0 with all it dependent libraries? > > Thanks. > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
