VersionReaderAliases.

GetVersionNumberWithContinuesIntegrationNumberAppended(ICakeContext, FilePath, int) Method

Summary

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

Syntax

public static string GetVersionNumberWithContinuesIntegrationNumberAppended(this ICakeContext context, FilePath file, int buildNumber)

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context
file FilePath The binary to read from
buildNumber int The build number as provided by the build server

Return Value

Type Description
string Version number in the format '0.0.0-CI00000'