Search code examples
c#visual-studiohooksolution

Visual Studio add-in hook on solution load


I'm trying to write an add-in for Visual Studio that needs to be run every time a solution is loaded. Eventually I hope to make it a solution add-in so that it only runs for solutions that need it, but I'm wondering if there's any way to have my add-in hook on the user loading a solution?

Thanks.


Solution

  • The VCProjectEngineEvents SolutionLoaded event.

    Edit: I can only hope somebody else can come up with a sample they can post -- the only relevant code I have is something I can't post.