Friends, faced with an incomprehensible problem. There is a VSTO Excel add-in (template), and it works reasonably well and loads and so on. However, if any other EXCEL file is open when the add-in is launched, the add-in does not start. However, this is only relevant when the add-in is restarted, the first time it starts up perfectly. Those. the user has any EXCEL file open - he opens the add-in for the first time and everything is OK, after that he closes and opens the add-in again and everything dies. Work add-in is restored after closing all other EXCEL files.

    1 answer 1

    So, this is certainly not a solution to the problem I was talking about, but such an approach to changing the architecture of a project can help.
    https://stackoverflow.com/questions/54881625/vsto-excel-template-are-not-loaded-when-other-excel-files-are-open/54883054?noredirect=1#comment96555716_54883054