[英]Windows Universal App: Could not load file or assembly - The located assembly's manifest definition does not match the assembly reference
[英]Could not load file or assembly 'MySql.Data, Version=8.0.29.0.. The located assembly's manifest definition does not match the assembly reference
我无法启动我的 C# 项目。
未处理的异常。 System.IO.FileLoadException:无法加载文件或程序集“MySql.Data,版本=8.0.29.0,文化=中性,PublicKeyToken=c5687fc88969c44d”。 找到的程序集的清单定义与程序集引用不匹配。 (0x80131040) MySQL_namespace.SQLWork.Initialize(String server_name, String_port, String database_name, String user, String pass) 处的文件名:'MySql.Data, Version=8.0.29.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' ...
很久以前它曾经工作过。 现在,在我遇到 MySQL 连接问题后,我更新了 MySQL 连接器 nuget。 之后,我还使用 .Net 5.0 对其进行了重建。 现在无法启动它,因为它返回上述错误。
您可以尝试如下:
您是否确保将其复制到输出目录?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.