SolutionBuild.Clean Method

Deletes all compiler-generated support files for marked projects.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
Sub Clean ( _
    WaitForCleanToFinish As Boolean _
)
void Clean(
    bool WaitForCleanToFinish
)
void Clean(
    [InAttribute] bool WaitForCleanToFinish
)
abstract Clean : 
        WaitForCleanToFinish:bool -> unit 
function Clean(
    WaitForCleanToFinish : boolean
)

Parameters

  • WaitForCleanToFinish
    Type: System.Boolean
    Optional. Determines whether Build retains control until the build operation is complete. Default value is false.

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.

.NET Framework Security

See Also

Reference

SolutionBuild Interface

EnvDTE Namespace