Question

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?

Was it helpful?

Solution

You should be able to hook the OnAfterBackgroundSolutionLoadComplete event, which is raised when the Solution is fully loaded.

I don't know whether there is a DTE equivalent.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top