The plug-in does not appear to be compatible with this version of Rhino Custom Plugin

I have been writing a custom plugin for work and everything has been going well for Geometry Generation and otherwise. However it’s gotten to the point we need to create some UIs using XAML. I have taken the SampleCsWpf project from the RhinoCommon GitHub samples and basically copy pasted it into my project and refactored it somewhat. The separate project works well and the panel appears. But when I copy it into my project line by line and fix any tiny errors I get this message:

Unable to load .rhp plug-in.
The plug-in does not appear to be compatible with this version of Rhino

This is true for Rhino 6 and 7 WIP. And I have had this problem consistently whenever trying to factor XAML into a panel in my project, any slight addition seems to cause strange incompatibility issues. I’m not sure exactly what code to post, so please ask for anything necessary. Obviously I can’t post the whole project as it’s for my company.

1 Like

For anyone else with this issue, it seemed to be that VS was copying RhinoWindows to the output folder which caused issues. Also I had Rhino6 Common and Rhino7 Windows running Rhino 7 WIP.

3 Likes

Hi @csykes,

sorry for my child’s question.
what VS means I have the same issue that you had and I trying to solve it :slight_smile:

thank you

Hi Johannes

That would be Visual Studio.

You should probably try to explain your problem.
-wim

I think @johannes990 means that RhinoWindows is copying local to his build dir, which means he’s getting the “The plug-in does not appear to be compatible with this version of Rhino Custom Plugin” message

Hi both,

yes, @csykes you are right:

RhinoWindows is copying local to his build dir, which means he’s getting the “The plug-in does not appear to be compatible with this version of Rhino Custom Plugin”

may I ask you @csykes How did you fix this, please :slight_smile:

Hey @johannes990,
Ensure that the assembly has the property Copy Local marked as False, see below;
image
Once you’ve done this, clean the solution and rebuild;
image

1 Like

Thank you! cskeys!!!

Anytime @johannes990 :slight_smile: