Skip to content

Commit

Permalink
tweak package versions for release branch
Browse files Browse the repository at this point in the history
  • Loading branch information
dpvreony committed Mar 18, 2018
1 parent 83685cc commit e45a2fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit e45a2fc

Please sign in to comment.