Is it possible to reference 3rd party libraries

Discussion in 'Empyrion API' started by Taleth, Jun 17, 2017.

  1. Taleth

    Taleth Ensign

    Joined:
    Jul 24, 2016
    Messages:
    2
    Likes Received:
    0
    Trying to reference system.messaging v2.0 but I keep getting the following exception:

    System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
    at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
    at System.Reflection.Assembly.GetTypes () [0x00000] in <filename unknown>:0
    at Assembly-CSharp.MenuAttribute.SortReference () [0x00000] in <filename unknown>:0

    Any suggestions?
     
    #1
  2. joemorin73

    joemorin73 Captain

    Joined:
    Aug 24, 2016
    Messages:
    319
    Likes Received:
    170
    The .Net framework is not fully accessible within the Empyrion appdomain. To add System.Messaging, you would need to add the assembly to the Managed folder in the Empyrion Dedicated.
     
    #2
  3. Taleth

    Taleth Ensign

    Joined:
    Jul 24, 2016
    Messages:
    2
    Likes Received:
    0
    That's great! (and obvious, in hindsight) I actually managed to get my extension working with the EPM sample in the meantime. I'll try it out later. Also I feel like this is important information, I searched pretty hard for this until I finally gave in and came out of lurking mode. It should probably be in the documentation.
     
    #3

Share This Page