Notice:This project is currently in development and is not ready for use beyond experimentation.
AutoVer is a .NET CLI tool that is used for automating versioning of .NET projects.
The tool is meant to support the following capabilities:
- Auto version multiple project with different version numbers in a single git repository
- Specify Patch, Minor or Major version types
- Create git tags and GitHub releases
- Generate changelogs based on git commit messages as well as hand-written ones.
AutoVer could be used as part of your CI/CD workflow. The following is a sample GitHub Workflow to version a .NET project as well as create the CHANGELOG.md file.
name: Prepare Releaseon:
workflow_dispatch:
permissions:
contents: writejobs:
version-and-changelog:
name: Version and Changelogruns-on: ubuntu-lateststeps:
- name: Checkoutuses: actions/checkout@v4
- name: Setup .NET 10.0uses: actions/setup-dotnet@v4with:
dotnet-version: 10.0.x
- name: Install AutoVerrun: dotnet tool install -g AutoVer
- name: Setup Git Userrun: | git config --global user.email "github-user@email.com" git config --global user.name "GitHub User" - name: Increment Versionrun: autover version
- name: Update Chagelogrun: autover changelog
- name: Push Changesrun: git push && git push origin --tagsNote: Make sure to replace github-user@email.com and GitHub User.
If you have any feature requests, feel free to submit then to this repo for me to take into consideration as I build this tool out.
This project takes inspiration from the following projects: