【发布时间】:2020-10-03 04:27:06
【问题描述】:
我正在尝试使用 Dotnet core 3 在 Linux 上控制 RFID 阅读器
ReaderDynamicLib.dll 是主控制器文件,它不是我创建的 dll 文件。它是制造商提供的 sdk 文件仅在 32 位上运行我在 windows 中尝试过。
我创建了控制台应用程序以将参数发送到 ReaderDynamicLib.dll
[DllImport("ReaderDynamicLib.dll")]
public static extern int SetAntenna(int hScanner, int m_antenna_sel, int Address);
像这样 在 windows 上运行良好 但在 linux 上
An attempt was made to load program with an incorrect format
我假设 linux 没有 run as 32bit 选项
【问题讨论】:
标签: linux .net-core 32-bit dotnetcorecli