Search code examples
xamarinxamarin.formsmodbus

Xamarin rejects EasyModbus .NET library with TypeLoadException on EasyModbus.ModbusClient field


Is there a way to make Xamarin accept the EasyModbus .NET library? Or is there an accepted Modbus library for Xamarin?


Solution

  • Solved the problem by adding the EasyModbus dll in reference and adding a ModbusClient.cs file with the same classes and function definitions. Solved the dependencies and it worked just fine.