This article applies to Visual Studio 2015. If you're looking for Visual Studio 2017 documentation, use the version selector at the top left. We recommend upgrading to Visual Studio 2017. Download it here.
Builds a solution using a specified solution configuration file.
Devenv SolutionName /build SolnConfigName [/project ProjName [/projectconfig ProjConfigName]]
Required. The full path and name of the solution file.
Required. The name of the solution configuration that will be used to build the solution named in
Optional. The path and name of a project file within the solution. You can enter a relative path from the
SolutionName folder to the project file, or the project's display name, or the full path and name of the project file.
Optional. The name of a project build configuration to be used when building the
This switch performs the same function as the Build Solution menu command within the integrated development environment (IDE).
Enclose strings that include spaces in double quotation marks.
Summary information for builds, including errors, can be displayed in the Command window, or in any log file specified with the
This command only builds projects that have changed since the last build. To build all projects in a solution, use /Rebuild (devenv.exe).
This example builds the project
CSharpConsoleApp, using the
Debug project build configuration within the
Debug solution configuration of
devenv "C:\Documents and Settings\someuser\My Documents\Visual Studio\Projects\MySolution\MySolution.sln" /build Debug /project "CSharpWinApp\CSharpWinApp.csproj" /projectconfig Debug