Skip to content

Commit

Permalink
Update to Cake.Frosting 0.31.0 (#1921)
Browse files Browse the repository at this point in the history
  • Loading branch information
devlead authored and ryangribble committed Dec 16, 2018
1 parent 4d31536 commit 4fb3258
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build/Build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Cake.Frosting" Version="0.30.0" />
<PackageReference Include="Cake.Frosting" Version="0.31.0" />
</ItemGroup>

</Project>
10 changes: 8 additions & 2 deletions build/Tasks/Clean.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
using Cake.Common.IO;
using Cake.Core.IO;
using Cake.Frosting;

public sealed class Clean : FrostingTask<Context>
{
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)
Expand Down
6 changes: 0 additions & 6 deletions build/nuget.config

This file was deleted.

0 comments on commit 4fb3258

Please sign in to comment.