Menu

Visual Studio + Xamarin (Android App)

Anonymous
2017-02-01
2017-02-04
  • Anonymous

    Anonymous - 2017-02-01

    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?

     
    • Rossmann Engineering

      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

       
  • sebad13

    sebad13 - 2017-02-07

    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

     
    • Rossmann Engineering

      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

       
  • Anonymous

    Anonymous - 2017-02-11
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.