Two different assembly versions “The located assembly's manifest definition does not match the assembly reference”

前端 未结 5 2334
太阳男子
太阳男子 2020-12-19 20:36

I have a project that I am working on that requires the use of the Mysql Connector for NHibernate, (Mysql.Data.dll). I also want to reference another project (Migrator.NET)

5条回答
  •  攒了一身酷
    2020-12-19 21:17

    The simple solution is remove the Mysql.data.dll (that reference to old MySql version) reference from the Migrator.NET project and add new reference MySql.data.dll (the same version used by another project). Build the Migrator.NET again and now all should work fine. I was facing the same issue and the solution I mentioned worked perfectly for me

提交回复
热议问题