Two versions of the same Revit 2018 Add-In conflict?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm developing Add-In for Revit and wanted to have two instances running simultanously: one version for debugging (DLL located in my project bin/debug folder) and the other is production version (DLL located in ProgramData). Both create ribbon panel - I understand that panels should have unique names, so production version creates panel named "Panel" and debug version - "Panel-Debug". Both add-ins have also completely different manifests:
<?xml version="1.0" encoding="utf-8"?>
<RevitAddIns>
<AddIn Type="Application">
<Name>MyAddin</Name>
<Assembly>MyAddin.dll</Assembly>
<FullClassName>MyAddin.Addin</FullClassName>
<AddInId>F998FB70-A053-46B2-A9A6-310750B4FE8B</AddInId>
<VendorId>MyAddin</VendorId>
<VendorDescription>MyAddin</VendorDescription>
<VisibilityMode>NotVisibleWhenNoActiveDocument</VisibilityMode>
</AddIn>
</RevitAddIns>
<?xml version="1.0" encoding="utf-8"?>
<RevitAddIns>
<AddIn Type="Application">
<Name>MyAddin-Debug</Name>
<Assembly>path\to\bin\debug\MyAddin.dll</Assembly>
<FullClassName>MyAddin.AddinDebug</FullClassName>
<AddInId>E13F825D-D91E-4537-9C42-2DDA6503D639</AddInId>
<VendorId>MyAddin-Debug</VendorId>
<VendorDescription>MyAddin-Debug</VendorDescription>
<VisibilityMode>NotVisibleWhenNoActiveDocument</VisibilityMode>
</AddIn>
</RevitAddIns>
As you can see I even changed FullClassName for debug version. For some reason, when I launch Revit, I get the error: "The panel with name "Panel" already exists!". It looks like Revit tries to load production version of the DLL twice. I don't understand why is that? Both manifests point to completely different locations of the DLL. What am I doing wrong or don't understand?