Rhino command not updating, instead runs the old command

Hi! I’m facing the following issue:

I have custom Rhino.Command that has been working just fine. Now I’ve made some changes (like multiple times before), but for some reason Rhino is still running the old version of the command. In debug mode Visual Studio doesn’t even enter to the command code. Still it says the build was successful without errors.

What could be the solution for this? I have tried to restart Visual Studio, clean solution, rebuild, but no help yet.

Welcome to the forum!

If you look in Rhino to the menu Tools > Options, then select Plug-Ins you can see the loaded plug-ins. Find your plug-in, and click on the “details” link in the lower right part of the dialog, there you can see the location it is loaded from. If this is different from where you build the plug-in (and I suspect that is the case), you should note the registry key that is also there. This key needs to be removed from the registry when Rhino is not running, that can be done with the registry editor. So, close Rhino and remove the key from the registry After removal of your key, you can go the the build output path, and drag the RHP from there onto a newly started instance of Rhino.

Let me know if this helps!

Thank you for your reply! I looked the details, but everything seemed to be like they should. The file path was correct, and also the timestamp of the .rhp file.

However, I was able to fix the issue by restarting everything, reinstalling the plugin, and removing/adding RhinoCommon.dll reference. All this several times and in random order.

Ok, good that it works now.