views:

146

answers:

2

I would like to upgrade my FluentNHibernate to version 1.1, but I found out it uses Castle.Core 1.1.

I use Castle.Windsor 1.2 in my app which works with Castle.Core 1.2.

I now need to find a version of Castle.Windsor that uses this earlier version of Castle.Core, but I can't find it anywhere.

What do you recommend I should do?

  • Wait for a version of FluentNHibernate that uses the latest Castle.Core?

  • OR build FluentNHibernate 1.1 from source using the latest Castle.Core?

  • OR downgrade my Castle.Windsor version?

+2  A: 

Only NHibernate.ByteCode.Castle.dll and Castle.DynamicProxy2.dll depend on Castle.Core.dll.

You can get them compiled against Castle.Core.dll 1.2 from the Castle ActiveRecord 2.1.1 release.

Mauricio Scheffer
A: 

If you don't want to build FluentNHibernate against the lastest version of Castle, add this to your app.config/web.config file :

<configuration>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Castle.DynamicProxy2" publicKeyToken="407dd0808d44fbdc" culture="neutral" />
        <bindingRedirect oldVersion="2.1.0.0" newVersion="2.2.0.0" />
      </dependentAssembly>
    </assemblyBinding>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Castle.Core" publicKeyToken="407dd0808d44fbdc" culture="neutral" />
        <bindingRedirect oldVersion="1.1.0.0" newVersion="1.2.0.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>
mathieu

related questions