Update the Eto Nuget to 2.5.7 (latest), the problem still persistes
If instead I remove the Nuget and reference the Eto.dll in my Rhino installation folder the error goes away. It seems that’s because Rhino is using a 2.5.7-dev version.
Workaround:
We’ve currently copied a Eto-2.5.7-dev.dll in our repo, but ideally we wouldn’t have to do so .
Is there anything we could/should be doing differently?
Thanks!
I’m not sure how exactly you have your project set up (sdk-style, package.config, referencing rhino dll’s directly), but I would recommend removing all references to RhinoCommon, Grasshopper, GH_UI, Eto.Forms, and simply use these nuget packages:
RhinoCommon - this includes RhinoCommon.dll, Rhino.UI.dll, and Eto.dll that is compatible with Rhino
Grasshopper - includes Grasshopper.dll and GH_IO.dll
Apologies for the time wasted, I got it!
The issue was that I had an explicit reference to the Eto nuget but, as you say, this is not needed if I’m already referencing the Rhino nuget.
It took me a while as I assumed the Rhino nuget would get Eto as dependency but it’s instead included in its own nuget.