When testing the unit test of the C# Windows Forms application, the following errors occur:
Although only version 1.2.0.203 is referenced in the project, the error is referenced by version 1.2.200. How to determine the source of this reference and which tools can help search for the old assembly version on the hard disk?
<code>System.IO.FileLoadException: 无法加载文件或程序集“Utility, Version=1.2.0.200, Culture=neutral, PublicKeyToken=764d581291d764f7”或它的某一个依赖项。找到的程序集的清单定义与程序集引用不匹配。</code>
Answer
.NET program set the loader facing two challenges:
It cannot find the 1.2.0.203 version of the referenced assembly set.
In addition, please refer to the Microsoft document (
https://www.php.cn/link/56DE534CF589F6D0CA09630DB803ba00<code>gacutil /i "path/to/my.dll"</code>
The above is the detailed content of Why Does My C# Unit Test Fail with a 'Located Assembly's Manifest Definition Mismatch' Error?. For more information, please follow other related articles on the PHP Chinese website!