Clean Project Command Line Reference

Clean Project
Cleans binaries, test results and other debris from your project

CleanProject [/D] [/?] [/Q] [/RD] [/RF] [/R] [/V] [/ZD] [/Z] [/W]

/?
Show Help
/D
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

/Q
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.
D:\code>cleanproject
Clean Project - Cleans binaries, test results and other debris from your project

Will clean the following directories
D:\code
This will delete files, do you want to continue? (y,n)

/R
Removes source control bindings - default false. When enabled, all source control bindings and source control files will be removed
/RD
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

/RF
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

/V
Displays lots of messages - Verbose mode tells you everything
/W
Windows Mode - Uses Message Boxes instead of the Console for prompts and output
cmdline.png
/XD
Exclude Directory - Adds a directory to the list which should be excluded from cleaning can use multiple times
/XF
Exclude File - Adds a file to exclude from cleaning
/Z
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.
/ZD
Zip file directory - default is parent directory of solution
Specifies the directory where you want to output the Zip file to.
cleanproject /ZD:C:\ZipFiles

Last edited Dec 18, 2011 at 1:57 PM by ronjacobs, version 4

Comments

No comments yet.