Unit testing with Rhino Inside

The dependencies of Rhino.Inside 7.0.0 are listed on nuget.org and are as follows:

    .NETFramework 4.8
        Grasshopper (>= 7.0.20314.3001)
        RhinoCommon (>= 7.0.20314.3001)
        RhinoWindows (>= 7.0.20314.3001)

This means that any RhinoCommon newer than 7.0 will work with Rhino.Inside, you just have to set it to the required version. Personally, I put the PackageReference to RhinoCommon in a shared targets file that is imported in each project that uses RhinoCommon, so I can control the version of RhinoCommon in one central location.

What’s more is that Rhino.Inside will even load Rhino 8, if you tell the Resolver to use the latest Rhino version installed:

RhinoInside.Resolver.UseLatest = true;
RhinoInside.Resolver.Initialize();
2 Likes