Fluent nhibernate FluentNHibernate 1.1/城堡1.1依赖项
我想将我的FluentNHibernate升级到1.1版,但我发现它使用Castle.Core1.1 我在我的应用程序中使用Castle.Windsor 1.2,它与Castle.Core 1.2一起工作 我现在需要找到一个版本的Castle.Windsor,它使用这个早期版本的Castle.Core,但我在任何地方都找不到它 你建议我做什么Fluent nhibernate FluentNHibernate 1.1/城堡1.1依赖项,fluent-nhibernate,castle-windsor,Fluent Nhibernate,Castle Windsor,我想将我的FluentNHibernate升级到1.1版,但我发现它使用Castle.Core1.1 我在我的应用程序中使用Castle.Windsor 1.2,它与Castle.Core 1.2一起工作 我现在需要找到一个版本的Castle.Windsor,它使用这个早期版本的Castle.Core,但我在任何地方都找不到它 你建议我做什么 等待使用最新Castle.Core的FluentNHibernate版本 或者使用最新的Castle.Core从源代码构建FluentNHibernat
- 等待使用最新Castle.Core的FluentNHibernate版本
- 或者使用最新的Castle.Core从源代码构建FluentNHibernate 1.1
- 或者降级我的城堡。温莎版本
您可以根据Castle.Core.dll 1.2从进行编译。只有NHibernate.ByteCode.Castle.dll和Castle.dynamicProxy.dll依赖于Castle.Core.dll
您可以根据Castle.Core.dll 1.2从进行编译。如果您不想根据Castle的最新版本构建FluentNHibernate,请将其添加到app.config/web.config文件中:
<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>
如果您不想根据Castle的最新版本构建FluentNHibernate,请将其添加到app.config/web.config文件中:
<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>
您是否尝试过使用程序集绑定重定向()?您是否尝试过使用程序集绑定重定向()?我在一个稍微不相关的案例中遇到了版本控制问题,但将程序集与您链接的程序集交换解决了我的问题。谢谢你,伙计!我在一个稍微不相关的案例中遇到了版本控制问题,但将程序集与链接的程序集交换解决了我的问题。谢谢你,伙计!