Using Rhino3dmIO in Unity problem

I’m trying to use Rhino3dmIO in Unity 5.4 on both Windows and Mac but I’m having issue to use this without an error.

First of all I followed the following instruction to get Rhino3dmIO.dll and rhino3dmio_native.dll from NuGet.

https://github.com/mcneel/rhinocommon/wiki/Rhino3dmIO-Toolkit-(OpenNURBS-build)

Then I put those two DLLs inside Plugin folder in Unity project and I got a following error.

TypeLoadException: Could not load type 'Rhino.FileIO.File3dm' from assembly 'Rhino3dmIO, Version=5.1.30000.14, Culture=neutral, PublicKeyToken=null'.
UnityEditor.EditorTestsRunner.EditorTestsRunnerWindow..cctor ()
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for UnityEditor.EditorTestsRunner.EditorTestsRunnerWindow

And if I tried to run the unity project it just crashes and force quits.

Is there any way to use Rhino3dmIO in Unity?
I did recognized from the following article that while ago somebody succeeded to use this on Unity but I couldn’t figure out how.

https://discourse.mcneel.com/t/opennurbs-for-c-unity/6586/4

Rhino3dmIo is currently only instrumented for Windows. We don’t have an OSX version available at the moment.

It also didn’t work for Unity in Windows platform. Could it mean it’s not supported for Mono?

This could be the problem. We do use mono on OSX for Mac Rhino so I know that it is possible to get RhinoCommon/Rhino3dmIo to work in the mono environment. I have just never looked into this use case.

When the exception is thrown, is there also an inner exception in the exception object? Usually I see those in a TypeLoadException and it is usually more informative.