diff --git a/build.cake b/build.cake index 9a0be22c0..2052f340f 100644 --- a/build.cake +++ b/build.cake @@ -95,7 +95,10 @@ Task("Clean") { if (DirectoryExists(artifactsDir)) { - DeleteDirectory(artifactsDir, recursive:true); + DeleteDirectory(artifactsDir, new DeleteDirectorySettings { + Recursive = true, + Force = true + }); } CreateDirectory(artifactsDir); });