Skip to content

Commit

Permalink
Merge pull request #29 from picoe/curtis/ci-build-tag-version
Browse files Browse the repository at this point in the history
Fix setting version from tag
  • Loading branch information
cwensley authored Jun 4, 2019
2 parents d5a5a07 + 0220151 commit 1944fef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
<!-- nuget properties -->

<!-- set version from tag -->
<BuildVersion Condition="$(BuildBranch.StartsWith('refs/tags/'))">$(BuildBranch.Substring(10))</BuildVersion>
<Version Condition="$(BuildBranch.StartsWith('refs/tags/'))">$(BuildBranch.Substring(10))</Version>
<!-- set version for CI build -->
<Version Condition="$(Version) == '' AND $(BuildVersion) != ''">$(BuildVersion)</Version>

<Version Condition="$(Version) == ''">0.1.0-dev</Version>
Expand Down

0 comments on commit 1944fef

Please sign in to comment.