Clean Project Command Line Reference
Cleans binaries, test results and other debris from your project
CleanProject [/D] [/?] [/Q] [/RD] [/RF] [/R] [/V] [/ZD] [/Z] [/W]
Directory to clean (can specify more than one) - default Current Directory. Use this option to specify one or more directories that you want to clean. Each directory must be preceded by the /D: switch.
CleanProject /D:C:\projects\MyProject1 /D:F:\OtherProjects\SomeOtherProject
Quiet mode - no prompts - default false. When you use option /Z Quite mode is automatically enabled. Without Quiet mode, the tool will prompt you before deleting things and wait for confirmation.
Clean Project - Cleans binaries, test results and other debris from your project
Will clean the following directories
This will delete files, do you want to continue? (y,n)
Removes source control bindings - default false. When enabled, all source control bindings and source control files will be removed
Directories to remove (includes sub directories). This option allows you to specify additional directories to remove beyond the defaults ("bin", "obj", "TestResults", "_ReSharper*"). For example to also remove
directories named "Foo" and "Baz"
D:\temp>cleanproject /RD:Foo /RD:Baz
File types to remove (use wildcards). This option allows you to specify additional files to remove beyond the defaults (".ReSharper", ".suo"). For example to also remove files "Z.txt" and "*.7z"
cleanproject /RF:Z*.txt /RF:*.7z
Displays lots of messages - Verbose mode tells you everything
Windows Mode - Uses Message Boxes instead of the Console for prompts and output
Exclude Directory - Adds a directory to the list which should be excluded from cleaning can use multiple times
Exclude File - Adds a file to exclude from cleaning
Copy clean and zip the project - default false. Copies the solution folder to a temporary directory which is cleaned and then zipped and placed in the Zip file directory. When this option is selected Quite mode is set to true - no prompting because
CleanProject won't delete any files in the original project only in the copy in the temp directory.
Zip file directory - default is parent directory of solution
Specifies the directory where you want to output the Zip file to.