RhinoInside in Ubnutu raises NotLicensedException if .config missing

Hey,

we are currently testing developing our Rhino Plugins with Rhino Inside in an Ubuntu wsl environment. We encounterd a NotLicensedException, even though RHINO_TOKEN was set via export in the shell. We found out that, if the .config directory is missing, that RhinoInside can not start functions depending on the RhinoCore , like for example Brep.CreateFromBox().

Our current workaround is to create the .config folder by hand if its not there yet, which solves the issue.

Environment:

  • Ubuntu 24.04 under WSL2
  • Rhino 9 9.0.26257.7309
  • .NET 10.0.12

Is this behavior expected or a bug? Or did we just encounterd a misconfigured setup of Ubuntu and it’s Rhino installation?

We try to migrate to a wsl environment, since its easier for our CI process and also for agentic programming.

Does Rhino Inside or Rhino 9 support WSL? It’s the first I’ve heard that either of them support Linux.

Yes, since RhinoCompute is based around RhinoInside, you use the same technique/code to start Rhino processes.

For that to work, you need install the requirements for RhinoCompute on Ubuntu, aquire a Rhino_Token for licensing and run a dotnet project with Rhino Core attached.

Make a starting project with RhinoInside: RhinoLinuxTest/RhinoLinxTest/RhinoLinxTest/Program.cs at main · acmbo/RhinoLinuxTest · GitHub

And put your code/RhinoPlugin in a seperate Libary to make the seperation more clear:

Im the csproj files you can also see some of the configurations, to make it compatible with linux

Oh marvellous - I’ve simply been out of the loop for a while. Thanks. Sorry for the digression!

Thanks for reporting this. I’ll take a look shortly.