Skip to content

Commit

Permalink
Issue #24 - Added auto lookup of version number
Browse files Browse the repository at this point in the history
By adding a tag to the git repo, and then using the number of commits to
the repo since the tag, we can auto generate the version number.
  • Loading branch information
gep13 committed Feb 14, 2013
1 parent b0272ab commit 5c1bfe9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions BuildScripts/default.ps1
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
$psake.use_exit_on_error = $true
properties {
$baseDir = (Split-Path -parent $psake.build_script_dir)
#$versionTag = git describe --abbrev=0 --tags
#$version = $versionTag + "."
#$version += (git log $($version + '..') --pretty=oneline | measure-object).Count
$version = "0.11.0"
$versionTag = git describe --abbrev=0 --tags
$version = $versionTag + "."
$version += (git log $($version + '..') --pretty=oneline | measure-object).Count
$preversion = $version + "-pre"
$nugetExe = "$env:ChocolateyInstall\ChocolateyInstall\nuget"
$assemblyVersionPattern = 'AssemblyVersion\("[0-9]+(\.([0-9]+|\*)){1,3}"\)'
Expand Down

0 comments on commit 5c1bfe9

Please sign in to comment.