Mister.Version 1.1.0-rc.3

This is a prerelease version of Mister.Version.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Mister.Version --version 1.1.0-rc.3
                    
NuGet\Install-Package Mister.Version -Version 1.1.0-rc.3
                    
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="1.1.0-rc.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Mister.Version" Version="1.1.0-rc.3" />
                    
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 1.1.0-rc.3
                    
#r "nuget: Mister.Version, 1.1.0-rc.3"
                    
#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.
#addin nuget:?package=Mister.Version&version=1.1.0-rc.3&prerelease
                    
Install Mister.Version as a Cake Addin
#tool nuget:?package=Mister.Version&version=1.1.0-rc.3&prerelease
                    
Install Mister.Version as a Cake Tool

Mister.Version MSBuild Integration

This package provides MSBuild integration 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
  • 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
  • Git Tag Support: Creates and manages git tags for releases

Installation

Install the package via NuGet Package Manager:

dotnet add package Mister.Version

Or add it to your project file:

<PackageReference Include="Mister.Version" Version="1.1.0-rc.1" />

Configuration

Create a mister-version.yaml configuration file in your repository root:

projects:
  - name: "MyProject"
    path: "src/MyProject"
    dependencies: []

Usage

Once installed, Mister.Version will automatically calculate and inject version information during the build process. The version will be available in:

  • Assembly version attributes
  • Package version (for packable projects)
  • MSBuild properties

MSBuild Properties

The following MSBuild properties are available:

  • $(Version): The calculated semantic version
  • $(AssemblyVersion): Assembly version (major.minor.0.0)
  • $(FileVersion): File version (major.minor.patch.0)
  • $(InformationalVersion): Full version with metadata

Creating Tags

To create git tags during build, set the CreateTag property:

<PropertyGroup>
  <CreateTag>true</CreateTag>
  <TagMessage>Release $(Version)</TagMessage>
</PropertyGroup>

Advanced Configuration

Custom Version Calculation

You can customize version calculation by configuring the MSBuild task properties:

<PropertyGroup>
  <MisterVersionConfigPath>custom-config.yaml</MisterVersionConfigPath>
  <MisterVersionTagPrefix>v</MisterVersionTagPrefix>
  <MisterVersionCreateGlobalTags>true</MisterVersionCreateGlobalTags>
</PropertyGroup>

Branch-Specific Versioning

Mister.Version supports different versioning strategies based on branch types:

  • Feature branches: 1.0.0-feature-branch-name.1
  • Release branches: 1.0.0-rc.1
  • Development branches: 1.0.0-dev.1
  • Main/master branches: 1.0.0

Requirements

  • .NET Framework 4.7.2 or .NET 8.0+
  • Git repository
  • MSBuild 15.0+

Documentation

For complete documentation and advanced usage scenarios, visit the Mister.Version repository.

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
1.1.1 321 6/11/2025
1.1.0 114 6/7/2025
1.1.0-rc.13 92 6/7/2025
1.1.0-rc.12 37 6/6/2025
1.1.0-rc.11 45 6/6/2025
1.1.0-rc.10 48 6/6/2025
1.1.0-rc.9 83 6/6/2025
1.1.0-rc.8 126 6/5/2025
1.1.0-rc.7 117 6/5/2025
1.1.0-rc.6 114 6/4/2025
1.1.0-rc.5 120 6/4/2025
1.1.0-rc.4 123 6/4/2025
1.1.0-rc.3 139 6/3/2025
1.1.0-rc.2 112 6/3/2025
1.1.0-rc.1 189 6/3/2025
1.0.7 272 5/16/2025 1.0.7 is deprecated because it is no longer maintained.
1.0.6 305 5/15/2025 1.0.6 is deprecated because it is no longer maintained.