Stamps your assemblies with semver 2.0 compliant git commit specific version information and provides NuGet versioning information as well.
$ dotnet add package Nerdbank.GitVersioningWith this package, and a version.json file to express your version number checked into the root of your git repo:
{
"version": "1.0-beta"
}
Your .NET projects and other builds can be automatically stamped with a version that precisely describes the git commit that built it.