【解决吧】Assembly ‘XXX.DLL‘ will not be loaded due to errors...


特别说明:本问题仅记录,尚未完全保证解决。期望日后解决。若有了解请博文链接告知。


开发平台:Unity 2021
编程平台:Visual Studio 2022

问题描述


问题描述
原文 Assembly ‘XXX.DLL’ will not be loaded due to errors: XXX references strong named ICSharpCode.SharpZipLib Assembly references: 0.85.5.452 Found in project: 0.86.0.518.Assembly Version Validation can be disabled in Player Settings “Assembly Version Validation”
中译 程序集 “DLL路径” 将不会被加载。受限于 XXX 强命名的 “程序集(名称)” + 版本号。在项目中找到的 “版本号” 可在 Player Setting 中 搜索 “Assembly Version Validation” 选项并关闭后可用。

备注:这一个因为程序集冲突问题所导致的事故。一定程度上,对场景内已正常挂载的脚本造成 Missing Scripts 情况。

关于 Assembly Version Validation 选项


  官方文档解释:设置为 true 以精确匹配强命名程序集。默认情况下,Mono 通过精确版本匹配解析强命名程序集。因此,有时当 Mono 搜索不存在的确切版本时,您可能会遇到错误。禁用此设置以使 Mono 忽略版本匹配

解决方法


示例问题:解决外部导入 EXCEL.DLL 后出现的问题报错

在这里插入图片描述

解决方法:禁用 Assembly Verison Validation 选项

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_51026638/article/details/127785098