Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

/Runexit (devenv.exe) 

Compiles and runs the specified project or solution, and then closes the integrated development environment (IDE).

devenv /runexit {SolutionName|ProjectName}


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


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 minimizes the IDE while the project or solution is run, and it closes the IDE 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 in a minimized IDE using the active deployment configuration, and then closes the IDE.

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

Community Additions

© 2015 Microsoft