So, I created a project CoRhino containing classes which wraps Rhino types, so far wrapping only a Rhino3d, (thus referencing RhinoCommon) in order to try some new concept I’m working on. But, the solution, containing the main Console app project (CoApplication, also referencing RhinoCommon) won’t compile with the following error message:
Error CS1759 Cannot embed interop types from assembly ‘CoRhino, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ because it is missing either the ‘System.Runtime.InteropServices.ImportedFromTypeLibAttribute’ attribute or the ‘System.Runtime.InteropServices.PrimaryInteropAssemblyAttribute’ attribute. CoApplication D:\DEV\CS\Co_Framework\CoApplication\CSC 1 Active
I don’t really understand what this error is about, but if I’d guess it has something to0 do with the projects referencing RhinoCommon needs to somehow specify which version of RhinoCommon it uses, or?
Anyway, how/what can I do to fix this error?
//Rolf