1

I'm currently porting a C# plugin from Windows to Linux. On Windows the plugin is loaded using a DllExport nuget package, on Linux I'm looking to use Mono embedding.

The program that will use my plugin only has 32bit builds, so I would need to embed the 32bit version of Mono regardless of the OS.

On 64bit Linux, the default install of Mono only provides x64 libs and does not appear to be multi-arch compatible.

Is there an intended way to embed 32bit Mono on a 64bit system?

  • Not solved this specifically but have you tried the --arch switch on the mono command to see if you can execute in 32 bit? – muszeo Mar 02 '18 at 06:46
  • According to [link](https://stackoverflow.com/questions/47016012/running-32-bit-version-of-mono-embedded), the --arch command is not available when embedding, the issue is that on a 64bit system, mono does not provide 32bit libs to link/load and mono does not appear to have multiarch, preventing me from installing the 32bit version if the 64bit version is already installed. – TheLast Rar Mar 02 '18 at 18:28
  • Ah I see. So —arch only useful if executing mono directly. :-/ hummm – muszeo Mar 03 '18 at 00:01

0 Answers0