Skip to content

Commit

Permalink
use new deletedir api
Browse files Browse the repository at this point in the history
  • Loading branch information
TGP committed Dec 20, 2021
1 parent 47a024b commit ba4b767
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ Task("Clean")
{
if (DirectoryExists(artifactsDir))
{
DeleteDirectory(artifactsDir, recursive:true);
DeleteDirectory(artifactsDir, new DeleteDirectorySettings {
Recursive = true,
Force = true
});
}
CreateDirectory(artifactsDir);
});
Expand Down

0 comments on commit ba4b767

Please sign in to comment.