Skip to content

Commit

Permalink
Update Nuke
Browse files Browse the repository at this point in the history
  • Loading branch information
wieslawsoltes committed Oct 31, 2024
1 parent fbd6d63 commit 72e7a9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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="5.3.0" />
<PackageVersion Include="Nuke.Common" Version="8.1.2" />
</ItemGroup>
</Project>
9 changes: 4 additions & 5 deletions build/build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
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 @@ -48,7 +47,7 @@ protected override void OnBuildInitialized()
VersionSuffix = VersionSuffix ?? "";
}

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

Target Restore => _ => _
Expand Down

0 comments on commit 72e7a9c

Please sign in to comment.