Cant run rhino 8 by a consol application

I’m trying to run Rhino 8 from a console application, eventually for cloud use, but I’m struggling to even open the Rhino file. I expected a simple process: open Rhino in headless mode, read its geometry, process it, and save a new file but I can’t get past the starting point.

The only thing that works is Rhino.Compute, but it lacks the power of direct RhinoCommon. I also tried a workaround to fetch geometry through a custom class, but it failed due to incompatibility between Rhino3dm.Point3d and RhinoCommon.Point3d.

Most documentation seems geared toward plugins or assumes Rhino is already open,

and when I use rhino.inside which forces me to work with net48 instead of .net 7 or 8

it gives me this error

I noticed that when I installed Rhino. inside NuGet, It installed a rhinocomman, rhinowindow version 7 as shown in the error but I opened working with Rhino 8 v 8.17 is that the problem? and how can I solve this

Hello @Abdelrhman_Shawky

Seems like you have tried multiple approaches. For the sake of simplicity let’s focus on one right now. I think the best way to run Rhino as a headless console application is to use the Rhino.Inside NuGet package in your project.

Take a look at this example project. See if you can compile and run this on your machine successfully