Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Joao Matos Silva committed Oct 12, 2018
1 parent 2a04bb2 commit fd89629
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions build/Build.cs
Expand Up @@ -30,6 +30,10 @@ class Build : NukeBuild

public string RevisionString => IsTagged ? null : $"rev{Revision:D4}";

public string ArtifactsDirectory => RootDirectory / "artifacts";

public string OutputDirectory => RootDirectory / ".output";

Target Clean => _ => _
.Executes(() =>
{
Expand All @@ -41,22 +45,22 @@ class Build : NukeBuild
.DependsOn(Clean)
.Executes(() =>
{
DotNetRestore(s => DefaultDotNetRestore);
DotNetRestore();
});

Target Compile => _ => _
.DependsOn(Restore)
.Executes(() =>
{
DotNetBuild(s => DefaultDotNetBuild
DotNetBuild(s => s
.SetVersionSuffix(RevisionString));
});

Target Pack => _ => _
.DependsOn(Compile, Test)
.Executes(() =>
{
DotNetPack(s => DefaultDotNetPack
DotNetPack(s => s
.SetOutputDirectory(ArtifactsDirectory)
.SetProject(RootDirectory / "src" / "DateTimeExtensions")
.SetVersionSuffix(RevisionString));
Expand Down

0 comments on commit fd89629

Please sign in to comment.