When I add the ImageSharp package in a plugin on Mac, whenever the assembly is loaded I get a System.NotSupportedException “The invoked member is not supported in a dynamic module”. See screenshot. I’ve attached the plugin to demonstrate the issue. Is there anything I can do about this in the short term?
I don’t think this is a problem with their package. At least I would want to have a way to reproduce the problem outside of Rhino before complaining to them.
I think it is either a bug in the Rhino.Runtime.AssemblyResolver.CurrentDomain_AssemblyResolve function in the stack trace, or an incompatibility with the version of Mono used by RhinoMac.
ImageSharp works fine in a standalone project either in a recent version of Mono on Mac or CLR on Windows. Based on the exception traceback, it’s an issue that is happening in a Rhino event handler when an assembly is being loaded. So I don’t think anything I do to ImageSharp could change it. I guess I’ll just have to wait to see if Rhino 6 fixes the problem…