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.

/Rebuild (devenv.exe) 

Cleans and then builds the specified solution configuration.


devenv /rebuild SolnConfigName SolutionName [/project ProjName] [/projectconfig ProjConfigName]

SolnConfigName

Required. The name of the solution configuration that will be used to rebuild the solution named in SolutionName.

SolutionName

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

/project ProjName

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.

/projectconfig ProjConfigName

Optional. The name of a project build configuration to be used when rebuilding the /project named.

  • 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 CSharpConsoleApp, using the Debug project build configuration within the Debug solution configuration of MySolution.

devenv /rebuild Debug "C:\Documents and Settings\someuser\My Documents\Visual Studio\Projects\MySolution\MySolution.sln" /project "CSharpWinApp\CSharpWinApp.csproj" /projectconfig Debug 

Community Additions

ADD
Show:
© 2015 Microsoft