genielabs / zwave-lib-dotnet

Z-Wave Home Automation library for .NET / Mono
Apache License 2.0
63 stars 37 forks source link

Problem with SerialPortLib 1.0.18 #38

Open jgmdavies opened 5 years ago

jgmdavies commented 5 years ago

I get a 'Method not found' exception if I try to use version1.0.18 with your latest SerialPortLib, also 1.0.18:

Method not found: 'Void SerialPortLib.SerialPortInput.SetPort(System.String, Int32, System.IO.Ports.StopBits, System.IO.Ports.Parity)'. (MissingMethodException)

but not if I go back to SerialPortLib 1.0.16.

With SerialPortLib 1.0.16, I can connect to my Z-Stick Gen5, but calling Discovery gives:

Could not load file or assembly 'mscorlib.XmlSerializers, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.

which I don't know how to sort out - anyone else getting this?

Using VS2019, building for .NET Framework 4.6.2.

Thanks, Jim

genemars commented 5 years ago

I upgraded the project to SerialPortLib 1.0.18. I hope this will fix the issue.

01username commented 4 years ago

@genemars Seems to have the same issue with 1.0.19 that creeped in. Works fine on 1.0.18. Created another Issue for you : https://github.com/genielabs/zwave-lib-dotnet/issues/41