Solved Include .dll

Discussion in 'Rust Discussion' started by blender-narod, Apr 8, 2015.

  1. I would like to use in code classes from some .dll, how can I do this? Or I need to rebuild Oxide?
     
  2. Wulf

    Wulf Community Admin

    What are you trying to include?
     
  3. C# classes library.
     
  4. A managed DLL can be referenced by C# plugins using "// Reference: Some.Assembly.Name" at the top of the plugin.

    PInvoke on the other hand is disallowed by the plugin sandbox, so the only way to use native DLLs is by wrapping them with an extension.
     
  5. Thanks a lot!