Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How do we know certain .NET library will work in Unity(android) or not ?

Discussion in 'Getting Started' started by narf03, Sep 1, 2016.

  1. narf03

    narf03

    Joined:
    Aug 11, 2014
    Posts:
    222
    For example, this IdSharp
    http://www.idsharp.com/

    How do we know it will work properly with unity(android) or not without importing and running it ? Im lazy to test through all the possibilities, if possible i want an easy way to help me rule all all library that it confirmed wont work then only test through the rest.

    thanks.
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,842
    I don't think there's any shortcut for trying it (or finding someone else who has).
     
  3. DMFirmy

    DMFirmy

    Joined:
    Aug 13, 2016
    Posts:
    11
    I am not 100% sure that this is accurate, but in my experience I have found that I need to compile my .NET dll files against .NET version 3.5 to get them to consistently work in Unity. I have tried using some dll's compiled against .NET version 4.0 and above and had them fail on me, but I have not yet had a .NET 3.5 dll not work.
     
    Kiwasi likes this.
  4. narf03

    narf03

    Joined:
    Aug 11, 2014
    Posts:
    222
    So the version of dotNET framework decides if it will work or not ? and only dotNET 3.5 will work ?
     
  5. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,134
    It's a little more complex than that. Unity is primarily using the Mono framework. Older releases of the docs had a page that listed which APIs were supported but the newer docs don't seem to have that page any longer. Last I remember it being discussed it was approximately .NET 3.0.
     
    JoeStrout likes this.
  6. truebzyq

    truebzyq

    Joined:
    Jan 8, 2016
    Posts:
    1
    Ryiah likes this.