Skip to content

Commit

Permalink
Merge pull request #21 from mdsol/develop
Browse files Browse the repository at this point in the history
Fix the tag -> version conversion in build script
  • Loading branch information
bvillanueva-mdsol authored Jun 30, 2017
2 parents 478f533 + c918da2 commit 451d1ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $propsVersion = $props.SelectSingleNode("//PropertyGroup/Version").InnerText
if ($propsVersion.Contains("-")) { $propsVersion = $propsVersion.Substring(0, $propsVersion.IndexOf('-')) }

if ($env:APPVEYOR_REPO_TAG -eq 'true') {
$version = $env:APPVEYOR_REPO_TAG_NAME.Replace("release", "").Replace("release/v", "")
$version = $env:APPVEYOR_REPO_TAG_NAME.Replace("release/v", "").Replace("release", "")
Write-Host "$env:APPVEYOR_REPO_TAG_NAME" -ForegroundColor Cyan -NoNewline
} else {
$buildNo = $env:APPVEYOR_BUILD_NUMBER
Expand Down Expand Up @@ -71,4 +71,4 @@ dotnet xunit

Pop-Location

Write-Host "Build script completed." -ForegroundColor Cyan
Write-Host "Build script completed." -ForegroundColor Cyan

0 comments on commit 451d1ea

Please sign in to comment.