I tried following the C# getting started guide but adapted the steps to use
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"> <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>