locked
Event when Solution and Projects finished loading RRS feed

  • Question

  • Hi,

    Is there a some kind of event when opening a solution/project and it is completely loaded? 

    SolutionEvents.Opened is fired to early. The loading happens after the event was triggered.

    Thanks,

    Stefan

    Wednesday, January 2, 2013 8:07 PM

Answers

  • 2010 and lower:  IVsSolutionEvents

    2012+: IVsSolutionLoadEvents

    IVsSolutionLoadEvents exists in 2010 but it will never be fired as the ASL work (originally scheduled to go into 2010) didn't make it into 2010 and they apparently forgot to remove the interface. Bonus for you since it means even if you don't embed the interops your code will work on 2010 and 2012.

    Ryan

    • Marked as answer by stoni1981 Thursday, January 3, 2013 8:19 AM
    • Unmarked as answer by stoni1981 Thursday, January 3, 2013 8:19 AM
    • Marked as answer by stoni1981 Thursday, January 3, 2013 8:19 AM
    Wednesday, January 2, 2013 9:25 PM

All replies

  • What version of VS are we talking about?  To know when ASL loading in 2012+ is done you can implement IVsSolutionLoadEvents and advise with the solution object for callbacks.
    Wednesday, January 2, 2013 8:39 PM
  • Visual Studio 2010 and 2012
    Wednesday, January 2, 2013 8:41 PM
  • 2010 and lower:  IVsSolutionEvents

    2012+: IVsSolutionLoadEvents

    IVsSolutionLoadEvents exists in 2010 but it will never be fired as the ASL work (originally scheduled to go into 2010) didn't make it into 2010 and they apparently forgot to remove the interface. Bonus for you since it means even if you don't embed the interops your code will work on 2010 and 2012.

    Ryan

    • Marked as answer by stoni1981 Thursday, January 3, 2013 8:19 AM
    • Unmarked as answer by stoni1981 Thursday, January 3, 2013 8:19 AM
    • Marked as answer by stoni1981 Thursday, January 3, 2013 8:19 AM
    Wednesday, January 2, 2013 9:25 PM