在调用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,解决了问题。
时间: 2024-12-28 05:38:09