Excel-DNA / Excel-DNA/ExcelDna
Unloading add-ins with shared CommandBar menu
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 292
- Avg merge
- 20d 12h
- Merged PRs (30d)
- 1
Description
Hello Govert,
I'm creating multiple xll add-ins that display some of their commands exposed as `CommandBarControl` buttons in shared menus with `ExcelCommand` attribute.
Add-ins loading works as expected, however unloading "first" (first as in load order - the add-in responsible for initial command bar menu creation) add-in causes entire menu to disappear. Trying to unload any other add-in affected by this throws a `TargetInvocationException`.
This behavior is observed for any load/unload approach.
Is there a way to work around this without restarting the whole application? Are there any other ways to achieve something close to this modular UI?
Framework version: .NET6
Excel version: 2202 x64
ExcelDna version: 1.6.0-rc1
Contributor guide
Assessment
This issue has not been assessed yet.