Udostępnij za pośrednictwem


SolutionBuild.Clean(Boolean) Method

Definition

Deletes all compiler-generated support files for marked projects.

void Clean(bool WaitForCleanToFinish = false);
[System.Runtime.InteropServices.DispId(11)]
public void Clean (bool WaitForCleanToFinish = false);
[<System.Runtime.InteropServices.DispId(11)>]
abstract member Clean : bool -> unit
Public Sub Clean (Optional WaitForCleanToFinish As Boolean = false)

Parameters

WaitForCleanToFinish
Boolean

Optional. Determines whether Build(Boolean) retains control until the build operation is complete. Default value is false.

Attributes

Remarks

When a project is built, numerous support files can be generated by the compiler, such as, .idl files, .obj files, and so forth. The Clean method deletes all such files from all projects that are marked for build, returning the project to a state similar to never having been built.

To mark a project to be built, use the ShouldBuild.

Applies to