/Run (devenv.exe)

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

For the latest documentation on Visual Studio 2017, see -Run (devenv.exe) on docs.microsoft.com. Compiles and runs the specified project or solution.

devenv {/run|/r} {SolutionName|ProjectName}  

SolutionName
Required. The full path and name of a solution file.

ProjectName
Required. The full path and name of a project file.

Compiles and runs the specified project or solution according to the settings specified for the active solution configuration. This switch launches the integrated development environment (IDE) and leaves it active after the project or solution has completed running.

  • Enclose strings that include spaces in double quotation marks.

  • Summary information, including errors, can be displayed in the Command window, or in any log file specified with the /out switch.

This example runs the solution MySolution using the active deployment configuration.

devenv /run "C:\Documents and Settings\someuser\My Documents\Visual Studio\Projects\MySolution\MySolution.sln"  

Devenv Command Line Switches
/Runexit (devenv.exe)
/Build (devenv.exe)
/Rebuild (devenv.exe)
/Out (devenv.exe)

Show: