Hello,
After updating my extension with VSIXInstaller.exe, attempting to use that extension from previously opened instances of Visual Studio will result in an exception. The extension is delay loaded, so the previous version of the extension is getting uninstalled even though a Visual Studio instance is running that may need it in the future.
Here are the steps that I use to reproduce the issue.
1. Install MyExtension 1.0
2. Open Visual Studio without letting MyExtension load
3. Install MyExtension 2.0 (will mark 1.0 for deletion)
4. Launch a new Visual Studio (will delete 1.0)
5. Attempt to load MyExtension from the Visual Studio instance opened in step 2
6. Exception is thrown as you are trying to reference an extension that has been uninstalled.
This occurs in VS2010 and VS2012. Is there someway to keep the previous version around so that this doesn't happen? Any ideas for a workaround?
Thanks for any advice!