How to: Deactivate and Remove an Add-in

When you are done using an add-in, you can unload it from Visual Studio by removing the check from the box next to the add-in's name in the Add-in Manager. You may decide to remove the add-in permanently so that it no longer displays in the Add-in Manager, as well as its command on the Tools menu or on the Visual Studio toolbar. The following procedure outlines how to do this.

Note

The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. These procedures were developed with the General Development Settings active. To change your settings, choose Import and ExportSettings on the Tools menu. 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 <drive>:\Documents and Settings\<username>\My Documents\Visual Studio 2005\Addins.

  2. At a Visual Studio 2005 Command Prompt, type devenv /resetaddin Namespace.ClassName, where Namespace and Classname are replaced with the name of your add-in project and its class name, respectively. For example, devenv /resetaddin MyAddin1.Connect.

Compiling the Code

The IDE will start normally and the add-in and any command or toolbar buttons associated with it are deleted. To completely remove the add-in, however, you must manually delete all project files associated with the add-in, such as its DLL and solution file, because the /resetaddin switch only removes the add-in from the Visual Studio UI. The default location is <drive>:\Documents and Settings\<username>\My Documents\Visual Studio 2005\Projects.

See Also

Tasks

How to: Create an Add-In

How to: Restore Add-In Commands to the Menu