Export (0) Print
Expand All
1 out of 2 rated this helpful - Rate this topic

Delete Task

Deletes the specified files.

The following table describes the parameters of the Delete task.

Parameter Description

DeletedFiles

Optional ITaskItem[] output parameter.

Specifies the files that were successfully deleted.

Files

Required ITaskItem[] parameter.

Specifies the files to delete.

TreatErrorsAsWarnings

Optional Boolean parameter

If true, errors are logged as warnings. The defalut value is false.

The following example deletes the file MyApp.pdb.

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

    <PropertyGroup>
        <AppName>MyApp</AppName>
    </PropertyGroup>

    <Target Name="DeleteFiles">
        <Delete Files="$(AppName).pdb" />
    </Target>
</Project>
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.