Skip to content

Commit

Permalink
chore: packing with version
Browse files Browse the repository at this point in the history
  • Loading branch information
andygjp committed Feb 10, 2019
1 parent acc5d9e commit cfcc709
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,18 @@ class Build : NukeBuild

[Solution("DotNet.Project.LaunchSettings.sln")] readonly Solution Solution;

AbsolutePath OutputDirectory => RootDirectory / "output";
readonly AbsolutePath OutputDirectory = RootDirectory / "output";

AbsolutePath TestResultsDirectory => RootDirectory / "test_results";
readonly AbsolutePath TestResultsDirectory = RootDirectory / "test_results";

AbsolutePath PackageDirectory => RootDirectory / "package";
readonly AbsolutePath PackageDirectory = RootDirectory / "package";

AbsolutePath NuspecFile => RootDirectory / "DotNet.Project.LaunchSettings.nuspec";
readonly AbsolutePath NuspecFile = RootDirectory / "DotNet.Project.LaunchSettings.nuspec";

readonly string Project = "DotNet.Project.LaunchSettings";

[Parameter] readonly string Version = "1.0.0";

Target Clean => _ => _
.Executes(() =>
{
Expand Down Expand Up @@ -97,6 +99,7 @@ class Build : NukeBuild
.SetConfiguration(Configuration)
.SetOutputDirectory(PackageDirectory)
.SetProperty("NuspecFile", NuspecFile.ToString())
.SetProperty("NuspecProperties", $"Version={Version}")
.EnableNoBuild());
});
}

0 comments on commit cfcc709

Please sign in to comment.