Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.56 KB

File metadata and controls

38 lines (30 loc) · 1.56 KB
title CPPClean Task
description This article describes the CPPClean task, which is used to delete the temporary files that MSBuild creates when a C++ project is built.
ms.date 11/04/2016
ms.topic reference
f1_keywords
vc.task.cppclean
dev_langs
C++
helpviewer_keywords
MSBuild (C++), CPPClean task
CPPClean task (MSBuild (C++))
author ghogen
ms.author ghogen
ms.subservice msbuild

CPPClean Task

[!INCLUDE C++-specific task]

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

Parameters

The following table describes the parameters of the CPPClean task.

Parameter Description
DeletedFiles Optional ITaskItem[] output parameter.

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

If true, clean temporary build files.
FilePatternsToDeleteOnClean Required String parameter.

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

Specifies a semicolon-delimited list of files not to clean.
FoldersToClean Required 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 (*).

See also