From 4fb325891124c8b2b4dfb7f065fd4a515d177f9f Mon Sep 17 00:00:00 2001 From: Mattias Karlsson Date: Sun, 16 Dec 2018 04:19:08 +0100 Subject: [PATCH] Update to Cake.Frosting 0.31.0 (#1921) --- build/Build.csproj | 2 +- build/Tasks/Clean.cs | 10 ++++++++-- build/nuget.config | 6 ------ 3 files changed, 9 insertions(+), 9 deletions(-) delete mode 100644 build/nuget.config diff --git a/build/Build.csproj b/build/Build.csproj index 305f7d3f57..db4ad0c415 100644 --- a/build/Build.csproj +++ b/build/Build.csproj @@ -6,7 +6,7 @@ - + diff --git a/build/Tasks/Clean.cs b/build/Tasks/Clean.cs index 8975abb2c6..478bccdc40 100644 --- a/build/Tasks/Clean.cs +++ b/build/Tasks/Clean.cs @@ -1,12 +1,18 @@ using Cake.Common.IO; +using Cake.Core.IO; using Cake.Frosting; public sealed class Clean : FrostingTask { public override void Run(Context context) { - var directories = context.GetDirectories("./**/bin", x => !x.Path.FullPath.Contains("/build/")) - + context.GetDirectories("./**/obj", x => !x.Path.FullPath.Contains("/build/")) + var globberSettings = new GlobberSettings + { + Predicate = x => !x.Path.FullPath.Contains("/build/") + }; + + var directories = context.GetDirectories("./**/bin", globberSettings) + + context.GetDirectories("./**/obj", globberSettings) + context.Artifacts; foreach (var directory in directories) diff --git a/build/nuget.config b/build/nuget.config deleted file mode 100644 index 09f2371f41..0000000000 --- a/build/nuget.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file