Versioning.Common 1.0.15

dotnet add package Versioning.Common --version 1.0.15
                    
NuGet\Install-Package Versioning.Common -Version 1.0.15
                    
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="Versioning.Common" Version="1.0.15" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Versioning.Common" Version="1.0.15" />
                    
Directory.Packages.props
<PackageReference Include="Versioning.Common" />
                    
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 Versioning.Common --version 1.0.15
                    
#r "nuget: Versioning.Common, 1.0.15"
                    
#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 Versioning.Common@1.0.15
                    
#: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=Versioning.Common&version=1.0.15
                    
Install as a Cake Addin
#tool nuget:?package=Versioning.Common&version=1.0.15
                    
Install as a Cake Tool

Versioning.Common

Versioning.Common provides a simple, centralized way to manage version numbers across multiple .NET projects using MSBuild. It works both for local development and automated CI builds (e.g., Azure DevOps, GitHub Actions).

✨ Features

  • Automatically sets:
    • Version
    • AssemblyVersion
    • FileVersion
    • InformationalVersion
  • Supports CI/CD overrides with MSBuild properties (BaseVersion, BuildMetadata, BuildIdentifier)
  • Auto-imports .props and .targets (no manual imports)
  • Logs version info during build (optional)

📦 Usage

1. Add the Package

<PackageReference Include="Versioning.Common" Version="1.0.0" />

No manual import needed — MSBuild handles it.

2. Set Base Version (Optional)

In your .csproj (optional — for local development):

<PropertyGroup>
  <BaseVersion>2.0.0</BaseVersion>
</PropertyGroup>

In CI:

msbuild /p:BaseVersion=2.0.0 /p:BuildMetadata=beta1 /p:BuildIdentifier=build.20250614.shaabc123

To silence logging in local builds:

<PropertyGroup>
  <LogVersionInfo>false</LogVersionInfo>
</PropertyGroup>

💡 Example Build Output

================== Versioning Info ==================
  ➤ BaseVersion: 2.0.0
  ➤ VersionRevision: 0
  ➤ BuildMetadata: beta1
  ➤ BuildIdentifier: build.20250614.shaabc123
  ➤ AssemblyVersion: 2.0.0.0
  ➤ FileVersion: 2.0.0.0
  ➤ Version (NuGet): 2.0.0-beta1
  ➤ InformationalVersion: 2.0.0-beta1+build.20250614.shaabc123
=====================================================
🎯 TFM: net35 | Lang: VB
📄 Generating assembly version file: obj\Debug\net35\Versioning_Common_GeneratedAssemblyInfo.vb

🛠 Tips

  • Works with SDK-style projects
  • Remove [assembly: AssemblyVersion(...)] etc. from your existing AssemblyInfo files to avoid duplicate attribute errors.
  • Works with VB.NET, C# and F# projects
  • Supports F# with correct module ordering via .props/.targets
  • Use BuildMetadata for prerelease labels (e.g., alpha, rc.1)
  • Use BuildIdentifier for commit hashes or CI run IDs
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.0.15 149 6/27/2025
1.0.14 126 6/23/2025
1.0.13 130 6/23/2025
1.0.12 132 6/23/2025
1.0.11 131 6/23/2025
1.0.10 131 6/23/2025
1.0.9 126 6/23/2025
1.0.8 130 6/23/2025
1.0.7 127 6/23/2025
1.0.6 127 6/22/2025
1.0.5 129 6/22/2025
1.0.4 92 6/22/2025
1.0.3 89 6/22/2025
1.0.2 91 6/22/2025
1.0.1 94 6/22/2025
1.0.0 101 6/22/2025