Rhino Compute VS code / net core

I tried following the C# getting started guide but adapted the steps to use dotnet commands.

When I try to run the meshed sphere sample I get the below error:

Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'librhino3dmio_native' or one of its dependencies: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
   at UnsafeNativeMethods.ON_Brep_FromSphere(Sphere& pConstSphere)
   at Rhino.Geometry.Sphere.ToBrep()
   at RhinoComputeTest.Program.Main(String[] args) in C:\Users\Hugh.Groves\Documents\VS_Code_Projects\RhinoComputeTest\Program.cs:line 18

I’m assuming that this is because my dotnetcoreapp2.2 is cross platform and I need some platform specific (windows) libraries to get it running. Any idea how I can do this?

My .csproj file looks like below:

<Project Sdk="Microsoft.NET.Sdk">


    <PackageReference Include="newtonsoft.json" Version="12.0.2" />
    <PackageReference Include="Rhino3dmIO.Desktop" Version="7.0.19260.11525-wip" />


Rhino3dmIO hasn’t been tested on .NET core. I’ve been working on a new version of Rhino3dmIO which is simply called Rhino3dm and is available on github at

We have successfully compiled a .NET core version for Amazon Linux, but haven’t done much testing beyond that point.

See also Rhino3dm .NET source available!