# Rhino Compute VS code / net core

**URL:** <https://discourse.mcneel.com/t/rhino-compute-vs-code-net-core/89239>\
**Category:** compute.rhino3d\
**Created:** [September 23, 2019, 9:42am UTC](https://discourse.mcneel.com/t/rhino-compute-vs-code-net-core/89239 "2019-09-23T09:42:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hugh\_groves](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/hugh_groves/32/173613_2.png) [@hugh\_groves](https://discourse.mcneel.com/u/hugh_groves)\
**Post date:** [September 23, 2019, 9:42am UTC](https://discourse.mcneel.com/t/rhino-compute-vs-code-net-core/89239/1 "2019-09-23T09:42:32Z")

</div>

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:

```auto
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:

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

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp2.2</TargetFramework>
  </PropertyGroup>

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

</Project>

```

---

<div class="post-metadata">

**Author:** ![stevebaer](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/stevebaer/32/473567_2.png) [@stevebaer](https://discourse.mcneel.com/u/stevebaer)\
**Post date:** [September 23, 2019, 8:14pm UTC](https://discourse.mcneel.com/t/rhino-compute-vs-code-net-core/89239/2 "2019-09-23T20:14:28Z")

</div>

`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

> **[mcneel/rhino3dm](https://github.com/mcneel/rhino3dm)**
>
> Libraries based on OpenNURBS with a RhinoCommon style - mcneel/rhino3dm

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

---

<div class="post-metadata">

**Author:** ![will](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/will/32/479454_2.png) [@will](https://discourse.mcneel.com/u/will)\
**Post date:** [September 24, 2019, 5:02pm UTC](https://discourse.mcneel.com/t/rhino-compute-vs-code-net-core/89239/3 "2019-09-24T17:02:55Z")

</div>

See also [Rhino3dm .NET source available](https://discourse.mcneel.com/t/rhino3dm-net-source-available/85003)!

---

<div class="post-metadata">

**Author:** ![MonkeyFace](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/monkeyface/32/639656_2.png) [@MonkeyFace](https://discourse.mcneel.com/u/MonkeyFace)\
**Post date:** [November 9, 2020, 7:56pm UTC](https://discourse.mcneel.com/t/rhino-compute-vs-code-net-core/89239/4 "2020-11-09T19:56:31Z")

</div>

Hi @stevebaer , I _was_ developing an app using .NET Core but just noticed Rhino.Compute currently requires Rhino3dmIO.Desktop v7+ … bit of a nuisance as i have many NET Core components … is there any plan for Compute to work with the Rhino3dm .NET Core library anytime soon? Should I hold my breath for this?

---

<div class="post-metadata">

**Author:** ![stevebaer](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/stevebaer/32/473567_2.png) [@stevebaer](https://discourse.mcneel.com/u/stevebaer)\
**Post date:** [November 9, 2020, 8:19pm UTC](https://discourse.mcneel.com/t/rhino-compute-vs-code-net-core/89239/5 "2020-11-09T20:19:38Z")

</div>

Rhino3dmIO is being replaced by Rhino3dm which is also available on nuget. Please switch over to using Rhino3dm; you shouldn’t have any compile issue when switching from one to another.

Rhino3dm already works with .NET Core. If it isn’t working for the scenario that you are trying to work with, we should be able to fix it.
