Visual Studio 2010
/Clean (devenv.exe)
Cleans all intermediary files and output directories.
devenv FileName /Clean [ /project projectnameorfile [/projectconfig name ] ]
Arguments
Remarks
This switch performs the same function as the Clean 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.
Example
The first example cleans the MySolution solution, using the default configuration specified in the solution file.
The second example cleans the project CSharpConsoleApp, 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" /Clean devenv "C:\Documents and Settings\someuser\My Documents\Visual Studio\Projects\MySolution\MySolution.sln" /Clean /project "CSharpWinApp\CSharpWinApp.csproj" /projectconfig "Debug"
See Also