Versioning.Common
1.0.11
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Versioning.Common --version 1.0.11
NuGet\Install-Package Versioning.Common -Version 1.0.11
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.11" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Versioning.Common" Version="1.0.11" />
<PackageReference Include="Versioning.Common" />
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.11
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Versioning.Common, 1.0.11"
#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.11
#: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.11
#tool nuget:?package=Versioning.Common&version=1.0.11
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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
- Sets
Version
,AssemblyVersion
,FileVersion
, andInformationalVersion
- Supports CI overrides via MSBuild props:
BaseVersion
,BuildMetadata
,BuildIdentifier
- Auto-imports
.targets
files (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
➤ 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
=====================================================
🛠 Tips
- Works with SDK-style projects
- Remove [assembly: AssemblyVersion(...)] etc. if present in AssemblyInfo.cs
- Works with VB.NET, C# and F# projects
- 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.17 | 67 | 8/15/2025 |
1.0.16 | 125 | 8/15/2025 |
1.0.15 | 212 | 6/27/2025 |
1.0.14 | 145 | 6/23/2025 |
1.0.13 | 149 | 6/23/2025 |
1.0.12 | 152 | 6/23/2025 |
1.0.11 | 152 | 6/23/2025 |
1.0.10 | 152 | 6/23/2025 |
1.0.9 | 146 | 6/23/2025 |
1.0.8 | 151 | 6/23/2025 |
1.0.7 | 148 | 6/23/2025 |
1.0.6 | 147 | 6/22/2025 |
1.0.5 | 149 | 6/22/2025 |
1.0.4 | 111 | 6/22/2025 |
1.0.3 | 108 | 6/22/2025 |
1.0.2 | 111 | 6/22/2025 |
1.0.1 | 113 | 6/22/2025 |
1.0.0 | 120 | 6/22/2025 |