/Rebuild (devenv.exe)
Visual Studio 2010
Cleans and then builds the specified solution configuration.
devenv SolutionName /rebuild SolnConfigName [/project ProjName] [/projectconfig ProjConfigName]
This switch performs the same function as the Rebuild Solution menu command within the integrated development environment (IDE).
Enclose strings that include spaces in double quotation marks.
Summary information for cleans and builds, including errors, can be displayed in the Command window, or in any log file specified with the /out switch.
This example cleans and rebuilds the project CSharpWinApp, using the Debug project build configuration within the Debug solution configuration of MySolution.
devenv "C:\Documents and Settings\someuser\My Documents\Visual Studio\Projects\MySolution\MySolution.sln" /rebuild Debug /project "CSharpWinApp\CSharpWinApp.csproj" /projectconfig Debug