Allows you to use Visual Studio™ commands such as /make, /run, /deploy, and /rebuild from the command prompt. This is useful for unattended building of solutions.
Syntax
Vstudio {{
{SolutionName [/debug | /release] {[/deploy | /m | /rebuild]}}
-or-
{[/debug | /release] [/deploy |/m | /rebuild SolutionName}}
-or-
{{{ProjectName [/debug | /release] [/m | /rebuild]} |
{[/debug | /release] [/m | /rebuild] ProjectName}}}*
[[/run | /runexit | /out FileName]][/lcid LocaleID] [/fn FontName] [/fs FontSize] [/sdi|/mdi]}
-or-
{/?}
* You can repeat either of these commands multiple times in the command line. Doing so allows you to build projects using different Microsoft® Visual Studio applications. For example, you can build a Java and a Visual InterDev™ project at the same time by repeating one of these lines and using the appropriate ProjectName.
The parts of the command line syntax are:
Argument | Description |
ProjectName or SolutionName | Designates the project (for example, .vjp, or .vip), or the solution file (that is, .sln). |
/debug | Tells Visual Studio to build ProjectName or SolutionName in debug mode. |
/release | Tells Visual Studio to build ProjectName or SolutionName in the form that you want to distribute it. |
/deploy | Deploys the solution using the active deployment map. |
/make or /m | Tells Visual Studio to build ProjectName or SolutionName using the current build settings. |
/run or /r | Tells Visual Studio to build and run ProjectName or SolutionName using the current build settings. The development environment is displayed and active when the project or solution is finished running. |
/runexit | Tells your product to run ProjectName or SolutionName. The development environment is minimized when the project or solution is run. If for any reason the file is changed in the process of running, all changes are ignored and no dialog box appears on exit to design mode. This argument uses the current build settings. |
/rebuild | Removes the built project files and then rebuilds the project or solution. |
/out | Allows you to specify a file to receive errors. Must be used with /m, /deploy, or /rebuild. The errors are placed in this file, along with other status information. If you do not use this option, command line build errors will be displayed in a message box. |
FileName | Designates the file to receive errors when you build an executable using the /m, /runexit, /deploy, or /rebuild option. |
/lcid or /l | Sets the environment's default language. |
LocaleID | Designates the LCID you want to use. |
/fn | Changes the system font for the environment. |
FontName | Designates the font you want to use. For example, /fn timesnewroman changes the system font to the Times New Roman font. |
/fs | Changes the size of the system font for the environment. |
FontSize | Designates the size of the font you want to use. For example, /fs 12 changes the font to 12 point. |
/sdi | Changes the Visual Studio environment to SDI (single document interface) mode. When in SDI mode, every window you have open appears on the desktop. Visual Studio remains in SDI mode until you change it. You can change to MDI mode by using the /mdi argument or by clearing the SDI Environment option on the General Environment page in the Options dialog box. |
/mdi | Opens your product in MDI (multiple document interface) mode. When in MDI mode, you have on you desktop one window that contains the other windows you have open. Your product remains in MDI mode until you change it. You can change to SDI mode by using the /sdi argument or by selecting the SDI Environment option on the General Environment page in the Options dialog box. MDI mode is the default. |
/? | Lists the available command line arguments. |
You can use these arguments by choosing Run from the Start menu or from the command line. For example, you can use the following command to run Visual Studio and then load and run MySol.sln:
C:\Vstudio MySol.sln /r