Cake.VersionReader

Cake Build addon to assist with reading version numbers from an assembly

#addin nuget:?package=Cake.VersionReader&version=5.1.0

dotnet add package Cake.VersionReader --version 5.1.0

<PackageReference Include="Cake.VersionReader" Version="5.1.0" />

Aliases

Contains functionality for retrieving version numbers from assemblies

General

GetFullVersionNumber(FilePath) Get the version number from an assembly in 4-digit format.
GetFullVersionNumberWithContinuesIntegrationNumberAppended(FilePath, int) Get the version number from an assembly in 4-digit format with the current build number appended.
GetVersionNumber(FilePath) Get the version number from an assembly in SemVer format.
GetVersionNumberWithContinuesIntegrationNumberAppended(FilePath, int) Get the version number with the current build number appended. This is based on the article found here: http://www.xavierdecoster.com/semantic-versioning-auto-incremented-nuget-package-versions