Cannot convert from ‘Rhino.RhinoDoc’ to ‘System.Guid’ and cannot convert from ‘System.Guid’ to ‘Rhino.Geometry.ComponentIndex’
Seems like it dosn’t know the ObjRef(RhinoDoc doc, Guid id) Version…
You are referencing RhinoCommon 7.0 . You need at least RhinoCommon 7.6 as you can see from the documentation for the constructor with that signature: ObjRef Constructor (RhinoDoc, Guid)
Looks like you’re using the Grasshopper package through which RhinoCommon is used. You need to update the Grasshopper package to ensure the RhinoCommon transitive package also gets updated.
So what Version does the Grasshopper package need to be? It is on 7.6 and the RhinoCommon too. But it only goes to net7. net48 is still on 7.0 and i don’t see an update option for net48
I would just change this directly in your .csproj file. Look for PackageReference tags for RhinoCommon and Grasshopper then change the version info to the version you need.
Is there a reason to stick to 7.6 and not the latest 7.37 or the version prior to that 7.36?
I have no reason not to run the latest. This is just how it was setup by Visual studio and the ‘Rhino.VisualStudio.Windows.2022-8.10.0.vsix’ plugin. All i need is it running in Rhino 7 and 8. But when i updated to 8.x it only worked for net7 and thus Rhino8
So maybe i drop the net7.0 all together (in the .csproj file), or is this a bad idea?
and should i then go to 7.37? is that newer than 7.6?
37 is higher than 6 - that is in our release schedule 31 releases - at least 31 months worth of fixes.
If you need to release your work for Rhino 7 then I would suggest to multitarget, but still reference RhinoCommon and Grasshopper 7.36 for both targets.