Not
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Deletes the specified files.
Parameters
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. |
Remarks
Example
The following example deletes the file MyApp.pdb.
<Project xmlns="https://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<AppName>MyApp</AppName>
</PropertyGroup>
<Target Name="DeleteFiles">
<Delete Files="$(AppName).pdb" />
</Target>
</Project>