My Visual Studio Extension responds to the opening of a solution via IVsSolutionEvents.OnAfterOpenSolution()
.
Visual Studio 2017 introduced "Open Folder" as an alternative to "Open Solution", but when you open a folder, IVsSolutionEvents.OnAfterOpenSolution()
doesn't fire. (Nor do any of the other events in IVsSolutionEvents
, nor any of the events in IVsSolutionLoadEvents
.)
How can my extension know when a Folder, as opposed to a Solution, is opened?
IVsSolution.AdviseSolutionEvents()
, none of theIVsSolutionEvents7
events fires. The object also implementsIVsSolutionEvents
, and those events do fire. Any ideas...?[ComVisible(true)]
to my definition ofIVsSolutionEvents7
. After that (and some more COM hoop-jumping) it's now all working - thanks! If you'd like to create an answer from your comment, I'd be delighted to accept it and award it a bounty (when it becomes eligible).