Install with NuGet and use GitVersion as a software library. Although this is an unsupported option and the API may break even between minor or patch releases, it's a useful option to some.
Warning
We are not semantically versioning this library and it should be considered unstable.