Muokkaa

Jaa


Devenv command-line switches for VSPackage development

Visual Studio allows developers to automate tasks from the command line when executing devenv.exe, the file that starts the Visual Studio IDE.

Tasks include:

  • Deploying applications in predesigned configurations from outside the IDE.

  • Automatically building projects using preset build settings or debug configurations.

  • Loading the IDE in specific configurations, all from outside the IDE. You can also customize the IDE upon launch.

Guidelines for switches

Visual Studio documentation describes the user-level devenv command-line switches. For more information, see Devenv command-line switches. The devenv tool also supports additional command-line switches that are useful with VSPackage development, deployment, and debugging.

Command-line switch Description
/ResetSkipPkgs Clears all skip loading options that have been added by users who want to avoid loading problematic VSPackages, then starts Visual Studio. The presence of a SkipLoading tag disables the loading of a VSPackage. Clearing the tag re-enables the loading of the VSPackage.

This switch takes no arguments.
/RootSuffix Starts Visual Studio by using an alternate location. The following command is run by the shortcut created by the Visual Studio SDK installer:

devenv /RootSuffix exp

In this case, exp identifies a location with a particular suffix (for example, 10.0Exp instead of 10.0). The experimental instance allows you to debug a VSPackage separately from the instance of Visual Studio that you're using to write code.

This switch can take any string that identifies a location that you've created by using VSRegEx.exe. For more information, see The Experimental Instance.
/SafeMode Launches Visual Studio in safe mode, loading only the default IDE and services. The /SafeMode switch prevents all third-party VSPackages from loading when Visual Studio starts, ensuring stable execution.

This switch takes no arguments.
/Setup Forces Visual Studio to merge resource metadata that describes menus, toolbars, and command groups from all available VSPackages. You can only run this command as an administrator.

This switch takes no arguments. The devenv /Setup command is typically given as the last step of the installation process. Use of the /Setup switch doesn't start the IDE.
/Splash Shows the Visual Studio splash screen, as usual, and then shows a message box before showing the main IDE. The message box lets you study the splash screen (for example, to check for a VSPackage product icon).

This switch takes no arguments.

See also