未能加载文件或程序集 或它的某一个依赖项。试图加载格式不正确的程序。问题解决

在调用mcp2210_dll_m_dotnetv4_x86.dll时,出现上述问题,并且存在warning:There was a mismatch between the processor architecture of the project being build "MSIL" and the processor architecture of the reference "[internal C# dll]", "x86".

解决方法如下:

由于dll是x86版本的,所以需要工程下面所有platform的都得为x86,打开 'main property'在

将所有的platform都改为x86,解决了问题。

原文地址:https://www.cnblogs.com/quray/p/7088857.html