Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

VSPackage - VS hangs/crashes when adding/removing/editing projects in OnBuildDone

$
0
0

I need to add/remove/modify projects after a build completes. However when doing this in BuildEvents.OnBuildDone, VS either hangs or crashes. I have since added 2 second timer in OnBuildDone after which I do this from another thread. This works most of the times but VS still sometimes hangs or crashes.

So, the question is... When is the build truly done, and when is it safe to start modifying the solution? Is there another event I can subscribe to that will be fired after OnBuildDone, or is there a property I can poll to know when it is safe to make changes to the solution?

I use MEF with a VSPackage targeted for VS 2010 and VS 2012.


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>