A sample on how to create a Visual Studio 2013 VSIX that supports asynchronous loading in Visual Studio 2015 and later.
- Technologies: Visual Studio 2013 SDK
- Topics: VSX
Description
This sample Visual Studio 2013 extension uses Visual Studio 2015 interops and helper methods to create a package that auto loads synchronously in Visual Studio 2013 and supports asynchronous auto load for Visual Studio 2015 and later where AsyncPackage support was added.
This allows extension authors to create a single auto loading package that works both in Visual Studio 2013 and also in future Visual Studio 2017 updates where synchronously auto loading packages will no longer be allowed by default.
Requirements
Visual Studio 2013, Visual Studio 2013 VS SDK
Get all samples
Clone the repo (How to):
git clone https://github.com/Microsoft/VSSDK-Extensibility-Samples.git
Run the sample
- To run the sample, hit F5 or choose the Debug > Start Debugging menu command. A new experimental instance of Visual Studio will launch.
- The sample package will load at startup automatically and will use the synchronous path as indicated by dialog box.
- Install VSIX on Visual Studio 2017 and run IDE.
- Now the package will use asynchronous loading path.
Related topics