Share via


/clean

Cleans all intermediary files and output directories.

devenv /clean ConfigName[/project ProjName] [/projectconfig ConfigName] SolutionName

Arguments

  • ConfigName
    Required. The solution configuration to use.
  • SolutionName
    Required. The path and name of the solution containing the project to clean.
  • /project ProjName
    Optional. The project file name, as an absolute path or a relative path from the directory containing the solution file. You can also specify the project display name. Use this argument to build a single project within a solution with multiple projects.
  • /projectconfig ConfigName
    Optional. The name of the build configuration.

Remarks

  • Paths that include spaces must be enclosed in double quotation marks.
  • Summary information for clean operations appears in the Command Prompt window, the Solution Builder view of the Output window, and any log file specified by the /out argument.

Example

This example cleans the solution MySolution for the release configuration.

devenv /clean release "c:\MySolutions\Visual Studio Projects\MySolution\MySolution.sln"

See Also

Devenv Command Line Switches | /build | /rebuild