NugetVersioningAliases.

BuildNugetVersion(ICakeContext, int, int, int, string) Method

Summary

Build a nuget compatible version from a branch.

Syntax

public static string BuildNugetVersion(this ICakeContext context, int major, int minor, int patch, string suffix)

Examples

var version = BuildNugetVersion(1, 0, 0, "newfunction");

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
major int The major part of the version (1st)
minor int The minor part of the version (2nd)
patch int The patch part of the version (3rd)
suffix string The version suffix

Return Value

Type Description
string The nuget compatible version