We recommend using Visual Studio 2017

Managing VSPackages


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Managing VSPackages.

In most cases you don’t need to worry about managing VSPackages, since the project and item templates register and load the package automatically. However, in some circumstances you may need to learn a bit more in order to manage your package.

To find out more about the experimental instance, see The Experimental Instance.

To find out how to register and unregister VSPackages and other types of extension, see Registering and Unregistering VSPackages.

VSPackages can be set to autoload when a particular CMDUICONTEXT GUID is turned on. For more information, see Loading VSPackages.

The AsyncPackage class enables package loading on a background thread for better UI responsiveness in Visual Studio. For more information, see How to: Use AsyncPackage to Load VSPackages in the Background.

Rules-based UI Contexts allows extension authors to define the precise conditions under which a UI Context is activated and associated VSPackages loaded. For more information, see How to: Use Rule-based UI Context for Visual Studio Extensions.

Find out the techniques for troubleshooting VSPackages that don’t load or are experiencing errors: Troubleshooting VSPackages