Search Unity

Library Import

Discussion in 'Scripting' started by glass22, Dec 16, 2010.

  1. glass22

    glass22

    Joined:
    Nov 19, 2010
    Posts:
    119
    Hi.

    I did a test Library to see if it works in Unity and it doesn't

    I get this error:


    Internal compiler error. See the console log for more information. output was:
    Unhandled Exception: System.TypeLoadException: Could not load type 'System.Runtime.Versioning.TargetFrameworkAttribute' from assembly 'LibaryTestApp'.


    It's just a simple dll containing two simple classes.
     
  2. andeeeee

    andeeeee

    Joined:
    Jul 19, 2005
    Posts:
    8,768
    What is in the test classes? If they use code in libraries not supplied with Unity then you may also need to include other DLLs in the project.
     
  3. Sam at FPS

    Sam at FPS

    Joined:
    Sep 1, 2009
    Posts:
    80
    This is old I know, but perhaps you are building the Library in Visual Studio and you project settings are for .Net 4.0? I had the same error and changing to .Net 2.0 fixed my problems.