v3.4.0
3.4.0 is a pretty big release containing mostly bug fixes but a heap of little features and improvements to make it easier to get started and use GitVersion.
Highlights are:
- When GitVersion runs on buildservers which do not allow fetch, it gets the branchname from environmental variables to prevent a fetch by default. This should make it much easier to just grab GitVersion and get started. It also reduces the need for dynamic repositories.
- You can now use
{BranchName}
in your tag config. So for feature branches you could doalpha.{BranchName}
- Can rebuild tags now without errors on the build server
- Heaps of small commit counting/branch normalisation fixes
- GitVersion now caches results, this speeds up a number of scenarios
- Lots of small docs improvements to make things clearer
Complete Release notes
- #768 - Document branch name variable usage in tag configuration #664 contributed by Gusztáv Varga (gusztavvargadr)
- #767 - Fixed json serialisation of 0's contributed by Jake Ginnivan (JakeGinnivan) fixes #762 - Flakey data types of returned JSON data +fix
- #765 - Perf improve part1 contributed by Eben Zhang (EbenZhangEmbed)
- #764 - Test to make sure #675 is really fixed contributed by Jake Ginnivan (JakeGinnivan)
- #763 - Fixed issue where config is no longer discovered contributed by Jake Ginnivan (JakeGinnivan)
- #758 - +0 in Version numbers (VSTS)
- #754 - Merge pull request #1 from GitTools/master contributed by oSilas (oSilas)
- #752 - Add test which verifies #257 is fixed contributed by Jake Ginnivan (JakeGinnivan)
- #744 - Bump develop when release branch is created contributed by Jake Ginnivan (JakeGinnivan)
- #753 #742 - Create PreReleaseLabel and PreReleaseNumber #742 contributed by Guillaume Rouchon (qetza)
- #738 - Fixed error contributed by Jake Ginnivan (JakeGinnivan) - fixes #731 - Unexpected error
- #733 - Unit Tests for Issue #728 contributed by Nithin Shenoy (nshenoy)
- #727 - Make sure to convert the whole object back to the JSON file contributed by Pascal Berger (pascalberger)
- #724 - Remove requirement on master branch existing contributed by Gary Ewan Park (gep13)
- #723 - Running in AppVeyor produces invalid semver for NuGet
- #722 - A peeled target isn't necessarily a commit contributed by Asbjørn Ulsberg (asbjornu) - fixes #721 - InvalidCastException on untagged branch though tag on merged branch exists
- #718 - VSO Task doesn't allow updated assembly info to be written to a specfic file
- #717 - Converted VSO Task to use PowerShell contributed by John Kattenhorn (johnkattenhorn)
- #716 - Tests to ensure up to date documentation contributed by Asbjørn Ulsberg (asbjornu)
- #712 - More informative crash on invalid working directory contributed by Asbjørn Ulsberg (asbjornu)
- #711 - Cache version information to disk contributed by Asbjørn Ulsberg (asbjornu)
- #710 #709 - Added global:: prefix in AssemblyInfoBuilder to avoid namespace conflicts. contributed by (sponge-b0b) - #703 - Add documentation about support of VB.NET contributed by Pascal Berger (pascalberger)
- #702 - Formatted the semver token explanation contributed by Asbjørn Ulsberg (asbjornu)
- #701 - Add property to always expose commits since last version contributed by Oren Novotny (onovotny) - #700 - Commit count resets to 0 when merge detected on branches - #687 - Conditional ms build tasks contributed by (pi3k14)
- #743 #681 - No longer resets commit count when branch is forward merged contributed by Jake Ginnivan (JakeGinnivan)
- #675 - When running GitVersion on buildserver /output json is ignored
- #766 #664 - Support branch name variable in tag configuration #664 contributed by Gusztáv Varga (gusztavvargadr)
- #746 #690 #642 - Fix branch normalisation when building a non-tip tag. Fixes #690 contributed by Jake Ginnivan (JakeGinnivan)
- #613 - Add /nofetch to argument help +fix
- #713 - Improve documentation contributed by Asbjørn Ulsberg (asbjornu)
- #751 #605 - Display nicer error message when git is not on the path and GitVersio… contributed by Jake Ginnivan (JakeGinnivan)
- #755 #606 #604 #628 - Prevent fetch for Vso and Jenkins, TeamCity contributed by Jake Ginnivan (JakeGinnivan)
- #750 #548 - Do not pick up version in merge target contributed by Jake Ginnivan (JakeGinnivan)
- #714 #473 - Add version info if it does not exist contributed by Josh Hobbs (FunnyFry)
- #257 - Allows assembly info update to run multiple times +enhancement