Inspired by
- http://stackoverflow.com/questions/25768653/versioning-net-builds/25806365#25806365
- https://intovsts.net/2015/08/24/global-net-versioning-strategy-assemblyinformationalversion/
I set off to create an MsBuild Tasks file that could be imported into csproj files and that calls tf.exe history as command line to get the latest revision on a project folder and embedding in the build assembly version revision number. I did not want this to be hidden in a build server step and I wanted the code to be open if a developer needed to investigate the tasks.
The end result is shared in this Gist:
(Updated with Git support on 2017-07-28)
No comments: