CPPClean Task

 

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

Deletes the temporary files that MSBuild creates when a Visual C++ project is built. The process of deleting build files is known as cleaning.

The following table describes the parameters of the CPPClean task.

ParameterDescription
DeletedFilesOptional ITaskItem[] output parameter.

Defines an array of MSBuild output file items that can be consumed and emitted by tasks.
DoDeleteOptional Boolean parameter.

If true, clean temporary build files.
FilePatternsToDeleteOnCleanRequired String parameter.

Specifies a semicolon-delimited list of file extensions of files to clean.
FilesExcludedFromCleanOptional String parameter.

Specifies a semicolon-delimited list of files not to clean.
FoldersToCleanRequired String parameter.

Specifies a semicolon-delimited list of directories to clean. You can specify a full or a relative path, and the path can contain the wildcard symbol (*).

Task Reference

Show: