Skip to content

Commit

Permalink
Revert "Update Nuke"
Browse files Browse the repository at this point in the history
This reverts commit 72e7a9c.
  • Loading branch information
wieslawsoltes committed Oct 31, 2024
1 parent 72e7a9c commit 6c425ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
<ItemGroup>
<PackageVersion Include="System.Reactive" Version="6.0.1" />
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
<PackageVersion Include="Nuke.Common" Version="8.1.2" />
<PackageVersion Include="Nuke.Common" Version="5.3.0" />
</ItemGroup>
</Project>
9 changes: 5 additions & 4 deletions build/build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Nuke.Common.Tools.DotNet;
using Nuke.Common.IO;
using static Nuke.Common.IO.FileSystemTasks;
using static Nuke.Common.IO.PathConstruction;
using static Nuke.Common.Tools.DotNet.DotNetTasks;

class Build : NukeBuild
Expand Down Expand Up @@ -47,7 +48,7 @@ protected override void OnBuildInitialized()
VersionSuffix = VersionSuffix ?? "";
}

private void DeleteDirectories(IReadOnlyCollection<AbsolutePath> directories)
private void DeleteDirectories(IReadOnlyCollection<string> directories)
{
foreach (var directory in directories)
{
Expand All @@ -58,9 +59,9 @@ private void DeleteDirectories(IReadOnlyCollection<AbsolutePath> directories)
Target Clean => _ => _
.Executes(() =>
{
DeleteDirectories(SourceDirectory.GlobDirectories("**/bin", "**/obj"));
DeleteDirectories(TestsDirectory.GlobDirectories("**/bin", "**/obj"));
ArtifactsDirectory.CreateOrCleanDirectory();
DeleteDirectories(GlobDirectories(SourceDirectory, "**/bin", "**/obj"));
DeleteDirectories(GlobDirectories(TestsDirectory, "**/bin", "**/obj"));
EnsureCleanDirectory(ArtifactsDirectory);
});

Target Restore => _ => _
Expand Down

0 comments on commit 6c425ec

Please sign in to comment.