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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top