rossmann-engineering / EasyModbusTCP.NET

Modbus TCP, Modbus UDP and Modbus RTU client/server library for .NET implementations
928 stars 402 forks source link

No support for .NET standard #43

Closed bjarnekrottje closed 3 years ago

bjarnekrottje commented 4 years ago

Hi, I would like to use your NuGet-package in .NET Standard, but that's unsupported at the moment. Is there a possibility or near future planning on support for .NET Standard? Thanks in advance!

bjarnekrottje commented 4 years ago

If I try to run the framework in Xamarin for example, I get this error: System.TypeLoadException: 'Could not load type of field 'EasyModbus.ModbusClient:serialport' (19) due to: Could not resolve type with token 01000010 from typeref (expected class 'System.IO.Ports.SerialPort' in assembly 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089') assembly:System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 type:System.IO.Ports.SerialPort member:(null)'

ghost commented 4 years ago

I had the same issue and fixed it by downloading the NuGet-package called System.IO.Ports.

Padanian commented 4 years ago

I tentatively submitted the repository ported to .NET5 Wishing Rossmann merge the pull (and any other pending pull requests), or anyone interested forks my repo