Mister.Version 3.0.0

dotnet add package Mister.Version --version 3.0.0
                    
NuGet\Install-Package Mister.Version -Version 3.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Mister.Version" Version="3.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Mister.Version" Version="3.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Mister.Version" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Mister.Version --version 3.0.0
                    
#r "nuget: Mister.Version, 3.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Mister.Version@3.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Mister.Version&version=3.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Mister.Version&version=3.0.0
                    
Install as a Cake Tool

Mister.Version MSBuild Integration

version .NET License

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

  1. Install the package in your project
  2. Create an initial version tag:
    git tag v1.0.0
    
  3. 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 logging
  • MonoRepoTagPrefix - Version tag prefix (default: v)
  • MonoRepoPrereleaseType - Prerelease type (none, alpha, beta, rc)
  • MonoRepoConfigFile - Path to YAML configuration file
  • MonoRepoConventionalCommitsEnabled - Enable conventional commits analysis
  • MonoRepoChangeDetectionEnabled - Enable file pattern-based change detection
  • MonoRepoGenerateChangelog - 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.

There are no supported framework assets in this package.

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
Loading failed