From e45a2fc6b1d87cebca5f5ed619213207d6bc22bf Mon Sep 17 00:00:00 2001 From: David Vreony Date: Sun, 18 Mar 2018 16:13:11 +0000 Subject: [PATCH] tweak package versions for release branch --- build.cake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.cake b/build.cake index 8c2c5074c..6b76ffc25 100644 --- a/build.cake +++ b/build.cake @@ -75,6 +75,7 @@ var nugetVersion = gitVersion.NuGetVersion; var buildVersion = gitVersion.FullBuildMetaData; var assemblyVersion = gitVersion.Major + "." + gitVersion.Minor + ".0.0"; var fileVersion = majorMinorPatch; +var packageVersion = isReleaseBranch ? majorMinorPatch : informationalVersion; Information("informationalVersion: " + informationalVersion); Information("assemblyVersion: " + assemblyVersion); Information("fileVersion: " + fileVersion); @@ -142,7 +143,7 @@ Task("BuildSolution") .WithProperty("PackageOutputPath", MakeAbsolute(Directory(artifactDirectory)).ToString().Quote()) .WithProperty("TreatWarningsAsErrors", treatWarningsAsErrors.ToString()) .SetConfiguration("Release") - .WithProperty("Version", informationalVersion) + .WithProperty("Version", packageVersion) .WithProperty("AssemblyVersion", assemblyVersion) .WithProperty("FileVersion", fileVersion) .WithProperty("InformationalVersion", informationalVersion)