I've now used ILMerge to merge NHibernate 2.1's Antlr3.Runtime assembly into the NHibernate assembly (with Antlr3.Rutnime's types "internalized"). That produced a hopeful output; however, now NHibernate.Linq and other assemblies complained because the new NHibernate.dll did not match their string reference to the official NHibernate assembly.
Then I tried merging the NHibernate.Linq assembly into the merged assembly as well. Internalizing its types made Linq unavailable. So then I tried it without internalization but used union instead. Its still failing saying it needs the original NHibernate assembly: Error 6 The type 'NHibernate.ISession' is defined in an assembly that is not referenced. You must add a reference to assembly 'NHibernate, Version=2.1.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4'... On Aug 20, 11:10 pm, Fabio Maulo <[email protected]> wrote: > ILMerge...probably we will use it in next version > > 2009/8/20 Trinition <[email protected]> > > > > > > > > > I looked into assembly binding redirection, but it didnt' work because > > the > > Antlr3.Runtime versions I'm working with seem to have different public > > keys > > (I think... not sure). > > I'll ponder whether I want o have to compile my own version of > > NHibernate > > against the newer Antlr3.Runtime. > > > Thanks! > > > Regards, > > Brian. > > > On Aug 19, 12:08 pm, Tuna Toksoz <[email protected]> wrote: > > > if there are breaking changes, you can use assembly redirection, if there > > is > > > no breaking change, compile one against other's antlr dll > > > > Tuna Toksöz > > > Eternal sunshine of the open source mind. > > >http://devlicio.us/blogs/tuna_toksozhttp://tunatoksoz.comhttp://twitt... > > > > On Tue, Aug 18, 2009 at 5:49 PM, Trinition <[email protected]> wrote: > > > > > I've been successfully using NHibernate 2.1 in my project for several > > > > weeks. Now I'm adding StringTemplate 3.2 into the mix. Both NHibernate > > > > 2.1 and StringTemplate 3.2 depend upon Antlr3.Runtime, but apparently > > > > they depend upon differing versions. NHibernate 2.1 comes with > > > > Antlr3.Runtime version 3.1.0.39271 while StringTemplate 3.2 comes with > > > > Antlr3.Runtime version 3.1.3.6002. I can't seem to get my application > > > > to satisfy both NHibernate's and StringTemplate's dependencies. Is > > > > there a good way of solving this problem? > > -- > Fabio Maulo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
