diff --git a/nuke/Build.cs b/nuke/Build.cs
index 87b753d..0b39025 100644
--- a/nuke/Build.cs
+++ b/nuke/Build.cs
@@ -109,7 +109,7 @@ class Build : NukeBuild
.Before(Restore)
.Executes(() =>
{
- SourceDirectory.GlobDirectories("**/bin", "**/obj").ForEach(DeleteDirectory);
+ SourceDirectory.GlobDirectories("**/bin", "**/obj").ForEach(dir => dir.DeleteDirectory());
});
Target Restore => _ => _
@@ -244,7 +244,7 @@ class Build : NukeBuild
throw new BuildAbortedException("Could not resolve the NuGet API key.");
}
- foreach (var nupkg in GlobFiles(ResultDirectory, "*.nupkg"))
+ foreach (var nupkg in ResultDirectory.GlobFiles("*.nupkg"))
{
DotNetNuGetPush(s => s
.SetTargetPath(nupkg)
diff --git a/nuke/_build.csproj b/nuke/_build.csproj
index 4868d0d..a71fa1b 100644
--- a/nuke/_build.csproj
+++ b/nuke/_build.csproj
@@ -11,7 +11,7 @@
-
+