How can I detect if the Solution is initializing using the DTE in a VisualStudio extension?
Posted
by
justin.m.chase
on Stack Overflow
See other posts from Stack Overflow
or by justin.m.chase
Published on 2012-10-23T16:57:24Z
Indexed on
2012/10/23
17:00 UTC
Read the original article
Hit count: 248
I am using the DTE to track when projects are loaded and removed from the solution so that I can update a custom Test Explorer extension. I then trigger a container discovery process. But when the solution is first loaded it does an asynchronous load of some projects and fires a lot of Project Added events.
What I would really like to do is to ignore all of these events until the solution is done loading. I can't quite figure out the order of events such that I know for sure that this initialization process has completed. It would be really nice to be able to just query the solution object and ask it. Does anyone know if there is a property or interface or event that I can use to determine this?
© Stack Overflow or respective owner