Including native binaries for an extension?
Without going too in depth, I was looking to create an extension for Oxide (UMod?) that exposed the Microsoft Entity Framework but I ended up getting fed up with that so I started looking instead to write an extension to allow the use of SQL Compact. I feel like I am pretty close but I cant seem to figure out how to allow SqlCe to load its native binary dependancies. 

Below is the error I'm currently getting: 

I am currently packing the System.Data.SqlServerCe binary into my extension's output library. I am then moving the output and the x86 folder and the amd64 folder into "<server path>\RustDedicated_Data\Managed." 

So the structure is something like:
  • <server path>\RustDedicated_Data\Managed\amd64
  • <server path>\RustDedicated_Data\Managed\x86
  • <server path>\RustDedicated_Data\Managed\Oxide.Ext.Rustic.dll

Can anyone suggest a possible option for including native libraries for an extension? or maybe some insight into ways around this error? I havent really found much in the way of documentation for this one. Thanks for any and all help in advance.
Have you read this?
In response to Calytic ():
Have you read this?
Yeah I ran across that while trying to debug my issue. I am using Sql Server Ce 4.0, so I didn't think to try it. Went ahead and tried it anyways but alas, doesn't appear to have resolved anything.

My assumption is its something with Umod/Rust because I can use Sql Server Ce, and likewise EF, in other applications on the same machine.

Merged post

So as a test, I went ahead and stopped packing Sql Server Ce into my output dll using Costura. By simply just not packing it anymore, I am now getting a completely different (but seemingly related) error. Idk if it helps at all, but figured id mention it here.

I'm curious about this as well.. anyone have anything on this yet?