Mister.Version
3.0.0
dotnet add package Mister.Version --version 3.0.0
NuGet\Install-Package Mister.Version -Version 3.0.0
<PackageReference Include="Mister.Version" Version="3.0.0" />
<PackageVersion Include="Mister.Version" Version="3.0.0" />
<PackageReference Include="Mister.Version" />
paket add Mister.Version --version 3.0.0
#r "nuget: Mister.Version, 3.0.0"
#:package Mister.Version@3.0.0
#addin nuget:?package=Mister.Version&version=3.0.0
#tool nuget:?package=Mister.Version&version=3.0.0
Mister.Version MSBuild Integration
MSBuild integration package for Mister.Version, enabling automatic version calculation for .NET projects in monorepos.
Features
- Automatic Version Calculation: Generates semantic versions based on git history and changes
- Conventional Commits Support: Intelligent semantic versioning based on commit message conventions
- Automatic Changelog Generation: Generate changelogs from conventional commits during build
- File Pattern-Based Change Detection: Smart versioning based on which files changed
- Monorepo Support: Independent versioning for multiple projects in a single repository
- MSBuild Integration: Seamless integration with the .NET build process
- Cross-Platform: Works on Windows, macOS, and Linux
- Multi-Targeting Support: Works with both .NET Framework 4.7.2 and .NET 8.0+
Installation
Install via NuGet Package Manager:
dotnet add package Mister.Version
Or add to your project file:
<PackageReference Include="Mister.Version" Version="3.0.0" />
Usage
Once installed, Mister.Version automatically calculates and injects version information during the build process. The version will be available in:
- Assembly version attributes
- Package version (for packable projects)
- MSBuild properties (
$(Version),$(AssemblyVersion),$(FileVersion),$(InformationalVersion))
Quick Start
- Install the package in your project
- Create an initial version tag:
git tag v1.0.0 - Build your project:
dotnet build
The tool will automatically calculate versions based on your git history and changes.
What's New in v3.0
- Conventional Commits: Enable semantic versioning based on commit message conventions
- Changelog Generation: Automatically generate changelogs during build
- File Pattern Detection: Control version bumps based on which files changed
- Git Enhancements: Shallow clone support, custom tag patterns, submodule detection
- Additional Directory Monitoring: Track changes in shared libraries outside project directory
Configuration
Configure behavior using MSBuild properties:
<PropertyGroup>
<MonoRepoDebug>true</MonoRepoDebug>
<MonoRepoTagPrefix>v</MonoRepoTagPrefix>
<MonoRepoPrereleaseType>beta</MonoRepoPrereleaseType>
<MonoRepoConventionalCommitsEnabled>true</MonoRepoConventionalCommitsEnabled>
<MonoRepoChangeDetectionEnabled>true</MonoRepoChangeDetectionEnabled>
<MonoRepoIgnoreFilePatterns>**/*.md;**/docs/**</MonoRepoIgnoreFilePatterns>
<MonoRepoGenerateChangelog>true</MonoRepoGenerateChangelog>
<MonoRepoChangelogFormat>markdown</MonoRepoChangelogFormat>
</PropertyGroup>
Common properties:
MonoRepoDebug- Enable debug loggingMonoRepoTagPrefix- Version tag prefix (default:v)MonoRepoPrereleaseType- Prerelease type (none, alpha, beta, rc)MonoRepoConfigFile- Path to YAML configuration fileMonoRepoConventionalCommitsEnabled- Enable conventional commits analysisMonoRepoChangeDetectionEnabled- Enable file pattern-based change detectionMonoRepoGenerateChangelog- Generate changelog during build
Documentation
For complete documentation, including:
- Configuration options
- Versioning rules and strategies
- Feature branch support
- YAML configuration
- Advanced features
See the main README.
Requirements
- .NET Framework 4.7.2 or .NET 8.0+
- Git repository
- MSBuild 15.0+
License
MIT License - see the LICENSE file for details.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0 | 1,095 | 12/1/2025 |
| 3.0.0-alpha.5 | 640 | 12/1/2025 |
| 3.0.0-alpha.4 | 175 | 11/26/2025 |
| 3.0.0-alpha.3 | 151 | 11/26/2025 |
| 3.0.0-alpha.2 | 231 | 11/21/2025 |
| 2.2.0 | 430 | 11/19/2025 |
| 2.1.3 | 420 | 10/14/2025 |
| 2.1.2 | 369 | 9/16/2025 |
| 2.1.1 | 331 | 9/16/2025 |
| 2.1.0 | 184 | 8/15/2025 |
| 2.0.0 | 199 | 8/15/2025 |
| 1.2.1 | 192 | 8/15/2025 |
| 1.2.0 | 209 | 8/14/2025 |
| 1.1.1 | 481 | 6/11/2025 |
| 1.1.0 | 180 | 6/7/2025 |
| 1.1.0-rc.13 | 141 | 6/7/2025 |
| 1.1.0-rc.12 | 92 | 6/6/2025 |
| 1.1.0-rc.11 | 100 | 6/6/2025 |
| 1.1.0-rc.10 | 100 | 6/6/2025 |
| 1.1.0-rc.9 | 138 | 6/6/2025 |