Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Dotnet核心在Linux上以32位86x运行_Linux_.net Core_32 Bit_Dotnetcorecli - Fatal编程技术网

Dotnet核心在Linux上以32位86x运行

Dotnet核心在Linux上以32位86x运行,linux,.net-core,32-bit,dotnetcorecli,Linux,.net Core,32 Bit,Dotnetcorecli,我正在尝试使用DotnetCore3在linux上控制RFID阅读器 ReaderDynamicLib.dll是主控制器文件,它不是我创建的dll文件。这是制造商提供的sdk文件,仅在32位上运行,我在windows中尝试过 我创建了控制台应用程序,将参数发送到ReaderDynamicLib.dll [DllImport("ReaderDynamicLib.dll")] public static extern int SetAntenna(int hScanner,

我正在尝试使用DotnetCore3在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没有以32位运行选项

我对您的项目一无所知,但是发布32位linux应该可以使用

dotnet publish --runtime linux-x86 sampleProject.csproj

我对您的项目一无所知,但发布linux 32位版本应该可以与

dotnet publish --runtime linux-x86 sampleProject.csproj