Hello
How to use EasyModbusTCP library in Android app?
When I try to use that code in project:
"ModbusClient klient = new ModbusClient();"
there is a error:
System.TypeLoadException: Could not load type 'EasyModbus.ModbusClient' from assembly 'EasyModbus, Version=2.8.6216.37494, Culture=neutral, PublicKeyToken=null'.
and app don't start.
Any help?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
unfortunately it is not that easy to create a PCL Library, because PCL does not support the whole .NET Frameowork which is needed to build the library.
I did not try it with Android, but with my IOS app it worked to simply copy the classes you need into the project.
Stefan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2017-02-11
Post awaiting moderation.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Hello
How to use EasyModbusTCP library in Android app?
When I try to use that code in project:
"ModbusClient klient = new ModbusClient();"
there is a error:
System.TypeLoadException: Could not load type 'EasyModbus.ModbusClient' from assembly 'EasyModbus, Version=2.8.6216.37494, Culture=neutral, PublicKeyToken=null'.
and app don't start.
Any help?
Hi,
it seems that your Project for some reason requires a strong named dll. The Easymodbus DLL is a weak named dll.
You could integrate the source code into your project to solve that
Regards
Stefan
Thank you for reply.
I found that:
http://stackoverflow.com/questions/22861784/adding-third-party-dll-in-xamarin-studio
Can you port your lib to PCL lib? Is that even possible?
Regards
Hi,
unfortunately it is not that easy to create a PCL Library, because PCL does not support the whole .NET Frameowork which is needed to build the library.
I did not try it with Android, but with my IOS app it worked to simply copy the classes you need into the project.
Stefan