连接数据库报错XXX, Version=5.0.1.0, Culture=neutral, PublicKeyToken=null’. The located assembly’s manifest definition does not match the assembly reference

我引入SqlSugarCore的包后运行报上面的错误,百度了很多,有的说是跟服务器的编译啥的有关,还有的说在app.config中添加一些配置,但是都没有解决。只要连接数据库就会报这个错,经过我一番的排查,最终发现项目名名称与引入的包起冲突了
C#运行报错匹配不到assembly reference
通过这个问题,以后我们的项目的命名要注意了,不要跟依赖包冲突了。

相关文章:

  • 2021-12-02
  • 2021-11-09
  • 2021-08-10
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-30
猜你喜欢
  • 2022-12-23
  • 2020-10-27
  • 2022-12-23
  • 2021-05-07
  • 2021-09-28
  • 2022-02-15
  • 2022-12-23
相关资源
相似解决方案