How to: Run Add-ins On the Command Line
The document is archived and information here might be outdated

How to: Run Add-ins On the Command Line 

As an alternative to using the Add-In Manager to start add-ins, you can configure an add-in to load by using the Devenv command line. This can be useful, for example, if you want to perform an operation outside of the Visual Studio integrated development environment (IDE) and still initiate an add-in, such as for unattended builds or Windows system tools.

NoteNote

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 Export Settings on the Tools menu. For more information, see Visual Studio Settings.

To run an add-in on the command line

  1. After creating or loading the add-in, open the Add-in Manager.

  2. Check the box in the Command Line column for the add-in.

    Checking this box notifies Visual Studio that the add-in can be invoked via the command line as well as through the Add-in Manager.

  3. Exit Visual Studio.

  4. In a Command Prompt window, start Visual Studio by using the /Build (devenv.exe) switch. For example:

    devenv YourAddinSolutionName.sln /build.

See Also

Show:
© 2016 Microsoft