Skip to content

Commit

Permalink
Tweak AppVeyor build numbering to avoid failed builds (#738)
Browse files Browse the repository at this point in the history
Closes #737
  • Loading branch information
reisenberger authored Dec 27, 2019
1 parent 061a159 commit ef8971d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ Task("__UpdateAssemblyVersionInformation")
Information("FullSemVer -> {0}", gitVersionOutput["FullSemVer"]);
Information("AssemblySemVer -> {0}", gitVersionOutput["AssemblySemVer"]);

appveyorBuildNumber = gitVersionOutput["FullSemVer"].ToString();
appveyorBuildNumber = gitVersionOutput["BranchName"].ToString().Equals("master", StringComparison.OrdinalIgnoreCase)
? gitVersionOutput["FullSemVer"].ToString()
: gitVersionOutput["InformationalVersion"].ToString();
nugetVersion = gitVersionOutput["NuGetVersion"].ToString();
assemblyVersion = gitVersionOutput["Major"].ToString() + ".0.0.0";
assemblySemver = gitVersionOutput["AssemblySemVer"].ToString();
Expand Down

0 comments on commit ef8971d

Please sign in to comment.