I am testing the VS11 beta with our VSIP package and found the below issue related to project reloads.
In our VSIP package implementation, we make calls to IVsPersisthierarchyItem2->ReloadItem() to reload the project after certain operations.
The expectation is that once we make ReloadItem calls, we should get the following notifications in sequence
1) OnBeforeUnloadProject
2) OnBeforeCloseProject
3) OnAfterOpenProject
4) OnAfterLoadProject
Although we get notified about project unload and close (1 and 2), we are not getting notifications for projectOpen and Load events (3 and 4).
Due to this, our projects remain unloaded and never gets loaded after the operation. The only way out is to close and open the solution to load all projects afresh.
Either the OnAfterOpenProject and OnAfterLoadProject events are not generated at all or the listening clients are not notified about the events.
Is this a probable bug ?
Note : With earlier Visual Studio versions all of the 4 events are notified to us correctly after ReloadItem call.