Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Cleans and then builds the specified solution configuration.
devenv SolutionName /Rebuild [SolnConfigName [/Project ProjName [/ProjectConfig ProjConfigName]] [/Out OutputFilename]]
SolutionName
Required. The full path and name of the solution file.
SolnConfigName
Optional. The name of the solution configuration (such as Debug
or Release
) to be used to rebuild the solution named in SolutionName. If more than one solution platform is available, you must also specify the platform (for example, Debug|Win32
). If this argument is unspecified or an empty string (""
), the tool uses the solution's active configuration.
/Project
ProjName
Optional. The path and name of a project file within the solution. You can enter the project's display name or a relative path from the SolutionName folder to the project file. You can also enter the full path and name of the project file.
/ProjectConfig
ProjConfigName
Optional. The project's build configuration name (such as Debug
or Release
) to be used when rebuilding the /Project
named. If more than one solution platform is available, you must also specify the platform (for example, Debug|Win32
). If this switch is specified, it overrides the SolnConfigName argument.
/Out
OutputFilename
Optional. The name of a file that you want to send the tool's output to. If the file already exists, the tool appends the output to the end of the file.
This switch does the same thing as the Rebuild Solution menu command within the IDE.
Enclose strings that include spaces in double quotation marks.
Summary information for cleaning and building, 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 MySolution
.
devenv "%USERPROFILE%\source\repos\MySolution\MySolution.sln" /rebuild Debug /project "CSharpWinApp\CSharpWinApp.csproj" /projectconfig Debug
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today