From 23efcd3dce7ec3b95b11d6d07bd889265163612b Mon Sep 17 00:00:00 2001 From: tidusjar Date: Sat, 16 Sep 2017 22:26:29 +0100 Subject: [PATCH] build with the branch version --- appveyor.yml | 2 +- build.cake | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 0739ad92d..984f7afe8 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -8,7 +8,7 @@ install: # Get the latest stable version of Node.js or io.js - ps: Install-Product node $env:nodejs_version build_script: - - ps: ./build.ps1 --settings_skipverification=true -Verbosity Diagnostic + - ps: ./build.ps1 --settings_skipverification=true after_build: - cmd: >- diff --git a/build.cake b/build.cake index 3207688f5..17ed41c79 100644 --- a/build.cake +++ b/build.cake @@ -83,7 +83,15 @@ Task("SetVersionInfo") Information(@"Build:{0}",AppVeyor.Environment.Build.Dump()); - var fullVer = AppVeyor.Environment.Build.Version; + var buildVersion = string.Empty; + if(string.IsNullOrEmpty(AppVeyor.Environment.Build.Version)) + { + buildVersion = "3.0.000"; + } else{ + buildVersion = AppVeyor.Environment.Build.Version; + } + + var fullVer = buildVersion + "-" + versionInfo.BranchName; buildSettings.ArgumentCustomization = args => args.Append("/p:SemVer=" + versionInfo.AssemblySemVer);