Share via


/build

Builds a solution.

devenv /build ConfigName [/project ProjName] [/projectconfig ConfigName] SolutionName 

Arguments

  • ConfigName
    Required. The solution configuration name.
  • SolutionName
    Required. The path and name of the solution. If you want to build a single project configuration, use the /project ProjName argument to specify which project to build and optionally supply the /projectconfig configandplatformname argument.
  • /project ProjName
    Optional. The project file name, as an absolute path or a relative path from the directory containing the solution file. You can also specify the project display name. Use this argument to build a single project within a solution with multiple projects.
  • /projectconfig ConfigName
    Optional. The name of the build configuration.

Remarks

  • This switch is the same as Build Solution (CTRL + SHIFT + B) available within the IDE.
  • Paths that include spaces must be enclosed in double quotation marks.
  • Summary information for builds, including errors, appears in the Command Prompt window or in any log file specified with the /out argument.

Example

This example builds the solution MySolution with the debug solution configuration.

devenv /build debug "c:\MySolutions\Visual Studio Projects\MySolution\MySolution.sln"

See Also

Devenv Command Line Switches | /rebuild | /clean