How to: Deactivate and Remove an Add-In

When you finish using an add-in, you can unload it from Visual Studio by clearing the check box next to its name in Add-in Manager. By following the steps in this topic, you can remove the add-in permanently so that it no longer appears in Add-in Manager and its command no longer appears on the Tools menu or the Visual Studio toolbar. The Add-in Manager is located on the Tools menu. For more information, see How to: Control Add-Ins By Using the Add-In Manager.

Note

Your computer might show different names or locations for some of the Visual Studio user interface elements in the following instructions. The Visual Studio edition that you have and the settings that you use determine these elements. For more information, see Visual Studio Settings.

To remove an add-in from the integrated development environment (IDE)

  1. Delete the .addin XML registration file for the add-in that you want to remove.

    The default location is ..\Users\username\ Documents\Visual Studio 2010\Addins\.

  2. At a Visual Studio command prompt, type **devenv /resetaddin Namespace.**ClassName, where Namespace is the name of your add-in project and Classname is its class name, for example, devenv /resetaddin MyAddin1.Connect.

Compiling the Code

When the IDE starts, the add-in is deleted, together with any commands or toolbar buttons that are associated with it. However, to completely remove the add-in, you must manually delete all project files associated with it, for example, its DLL and solution file, because the /resetaddin switch only removes the add-in from the Visual Studio UI. The default location is ..\Users\username\ Documents\Visual Studio 2010\Projects\.

See Also

Tasks

How to: Create an Add-In

How to: Restore Add-In Commands to the Menu