quray

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

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

在调用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,解决了问题。

posted on 2017-06-28 11:14  quray  阅读(352)  评论(0)    收藏  举报