ABP 3.7 3.8版本升級後遷移數據庫,報錯未能加載文件或程序集「Castle.Core, Version=4.0.0.0」,System.ComponentModel.Annotations也可能提示4.0.0.0版本沒法加載,處理方法一致。數據庫
Castle.Core使用的4.3.1版本app
解決方法:保證core與EntityFramework項目的app.config的文件配置一致。.net
<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>blog
具體操做是:把core項目中的app.config和EntityFramework中的app.config按照上面方法改下。博客
--------------------- 本文來自 大聰 的CSDN 博客 ,全文地址請點擊:https://blog.csdn.net/dacong/article/details/82290518?utm_source=copy it