Skip to content

Commit

Permalink
Updating build project
Browse files Browse the repository at this point in the history
  • Loading branch information
soxtoby committed Jan 27, 2024
1 parent 5c3a7fd commit 35b2528
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ build_script:
- sh: ./build.cmd Test Pack

artifacts:
- path: output/*.nupkg
- path: 'output/*.nupkg'
11 changes: 5 additions & 6 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@
using Nuke.Common.Tools.DotNet;
using Nuke.Common.Tools.GitVersion;
using Serilog;
using static Nuke.Common.IO.FileSystemTasks;
using static Nuke.Common.Tools.DotNet.DotNetTasks;

[DotNetVerbosityMapping]
[ShutdownDotNetAfterServerBuild]
[AppVeyor(AppVeyorImage.VisualStudioLatest, InvokedTargets = new[] { nameof(Test), nameof(Pack) })]
[AppVeyor(AppVeyorImage.VisualStudioLatest, InvokedTargets = [nameof(Test), nameof(Pack)])]
class Build : NukeBuild
{
public static int Main() => Execute<Build>(x => x.Compile);
Expand All @@ -31,8 +30,8 @@ class Build : NukeBuild
.Executes(() =>
{
foreach (var dir in RootDirectory.GlobDirectories("**/bin", "**/obj").Except(RootDirectory.GlobDirectories("build/**")))
EnsureCleanDirectory(dir);
EnsureCleanDirectory(OutputDirectory);
dir.CreateOrCleanDirectory();
OutputDirectory.CreateOrCleanDirectory();
});

Target Restore => _ => _
Expand Down Expand Up @@ -90,13 +89,13 @@ class Build : NukeBuild
});

static readonly string[] ExpectedPackages =
{
[
"SlackNet",
"SlackNet.AspNetCore",
"SlackNet.Autofac",
"SlackNet.AzureFunctions",
"SlackNet.Bot",
"SlackNet.Extensions.DependencyInjection",
"SlackNet.SimpleInjector"
};
];
}
2 changes: 1 addition & 1 deletion build/_build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Nuke.Common" Version="7.0.6" />
<PackageReference Include="Nuke.Common" Version="8.0.0" />
<PackageDownload Include="GitVersion.Tool" Version="[5.12.0]" />
</ItemGroup>

Expand Down

0 comments on commit 35b2528

Please sign in to comment.