ABP 3.7版本迁移数据库报错未能加载文件或程序集“Castle.Core, Version=4.0.0.0”

ABP 3.7 3.8版本升级后迁移数据库,报错未能加载文件或程序集“Castle.Core, Version=4.0.0.0”,System.ComponentModel.Annotations也可能提示4.0.0.0版本无法加载,处理方法一致。

Castle.Core使用的4.3.1版本

解决方法:保证core与EntityFramework项目的app.config的文件配置一致。

 <dependentAssembly>
        <assemblyIdentity name="Castle.Core" publicKeyToken="407dd0808d44fbdc" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-4.3.1.0" newVersion="4.0.0.0"/>
 </dependentAssembly>

 

具体操作是:把core项目中的app.config和EntityFramework中的app.config按照上面方法改下。

 

 

 

 

--------------------- 本文来自 大聪 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/dacong/article/details/82290518?utm_source=copy 

posted @ 2018-10-08 16:21  liu_xh  阅读(501)  评论(0编辑  收藏  举报