Open-Source
Built by the GitTools community and available under the MIT license.
Explore the source →Built by the GitTools community and available under the MIT license.
Explore the source →Use GitHub Flow, Git Flow, or a branching strategy that fits your team.
Find your workflow →Define versioning rules in GitVersion.yml and make every release consistent.
Explore configuration →Run from the command line, Docker, MSBuild, or your CI pipeline.
Choose your integration →Install GitVersion as a global .NET tool.
dotnet tool install --global GitVersion.Tool --version 7.0.0Also available for Docker and MSBuild.
Full installation guide →Run it inside your Git repository.
# Calculate your version
dotnet-gitversion
# Print a single version variable
dotnet-gitversion --show-variable SemVer
Command-line options →
GitVersion reads your tags, branches, and commits to calculate a semantic version for the current commit.
This example is illustrative. Your output depends on your repository history and configuration.
Learn how versions are calculated →"FullSemVer": "1.1.0" Ready to buildAsk the community, report an issue, or help improve GitVersion.