Rhino.Inside .NET Core 7.0

Hello everyone,

I may be missing something, but Rhino.Inside in NuGet and Visual Studio is not showing any version higher than rhino 7 (latest stable). However, I wanted to use the latest rhino 8 which allows to run it with .NET Core 7.0 if I am correct.

All packages available in NuGet do have some beta release with 8.0 something, but Rhino.Inside does not. Am I missing something ?

I would like to call Rhino functions from a .NET Core web API.

Thanks for the help and all the best,

2 Likes

@stevebaer @curtisw Really sorry to ping you in particular, but from what I could see on the forum you seem to know a lot on the topic. I am afraid my question would remain without answer for a while, and it’s important since we are considering this option for developing a new product in our company.
I might have forgotten to tag this post with Serengeti (Rhino 8 BETA) - McNeel Forum and eventually Rhino Developer - McNeel Forum tags.
Thanks a lot in advance for your time and best regards

We do not have a nuget package for RhinoInside and Rhino 8 available yet. That said RhinoInside is really a single C# file and can be directly included in your project. We have done this and made some slight modifications in order to get things working with Rhino 8 and .NET 7 in this project which is part of Rhino.Compute for Rhino 8

4 Likes

Hi,

Thanks a lot for your answer. I will try this today and let you know if I am successful.
I just noticed RhinoCommon still depends on .NET Framework on my NuGet GUI ?
Isn’t it weird ? Or am I missing something ?


Again, thank you for your help.
Regards,

It is a little weird and you haven’t missed anything. It does still work, however. We don’t actually compile all of Rhino’s assemblies for .NET 7 yet so providing a .NET 7 target in the nuget package isn’t quite straightforward. I’ve added RH-77311 to get that added eventually.

Cheers,
Curtis.

1 Like

Hi @curtisw any news/plans for RH-77311 ?

I’d love to make these disappear :slight_smile:

Not yet, sorry. In the meantime you can add <NoWarn>NU1701</NoWarn> to your csproj.

3 Likes

Hi @Laoky, did the .NET Core 7.0 setup work for you?

I’m getting the following error when I run the debug and I don’t know how to fix them:

Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'RhinoCommon, Version=8.2.23346.13001, Culture=neutral, PublicKeyToken=552281e97c755530'. The system cannot find the file specified.

File name: 'RhinoCommon, Version=8.2.23346.13001, Culture=neutral, PublicKeyToken=552281e97c755530'

I’m trying to run this RunGrasshopperSample project (my code can be found here). I’m not trying to develop any GH components/plugins, I just want to access GH API from C# code (probably something similar to what you are trying to achieve :smile:).

FWIW, I’m trying this on a Macbook using VS Code (from what I’ve read here this should be possible). I, will give it a try on a Windows machine as well.

Hey Gabriel,

I am awfully sorry for the late reply, I just saw the notification e-mail today.
To be honest I don’t have the time these days as I am really busy on some other projects and my free times are short.
I don’t want to let you down with an issue so just tell me if you still need help (it has been already 20 days since your post, you may have solved your issue in the meantime).
If so, I can try helping you next week.

Cheers,

Loïc

Hi @Laoky ,

I am trying to use Asp.Net Core Web API (.Net 8) with Rhino v8 (Rhino.Inside)
I am getting the same error as @Gabriel15

Did you solve the problem you have?

System.Runtime.InteropServices.COMException:“Error HRESULT E_FAIL has been returned from a call to a COM component.”

Rhino8.9 error