How to support multiple versions of the same plugin at the same time?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a plugin that has different versions, and they need to be both installed at the same time. The plugin has the main dll file and a few dependency dlls. I'm using the .bundle setup (using a folder in %PROGRAMDATA%) and so the dlls are not in the main Navisworks folder (eg: \Autodesk\Navisworks Manage 2019\Plugins)
The plugin dll (and dependencies) have the same filename. It's a CommandHandlerPlugin and adds command buttons to the Navisworks ribbon. Each version's name is displayed on the ribbon, so that the user knows which command button is for which version.
The problem that I'm having is that when Navisworks (either Simulate or Manage) starts up, it does not load the second plugin; it loads whichever plugin is first, alphabetically. So the user sees only one of the versions, even though both are installed correctly. I have confirmed that both work correctly on their own: it's only when both exist together that the second plugin is not loaded.
How do I configure my plugins so that Navisworks will load both of them?