NugetVersioningAliases.

BuildNugetVersionFromBranch(ICakeContext, int, int, int, int, BuildNugetVersionFromBranchSettings) Method

Summary

Build a nuget compatible version from a branch.

Syntax

public static string BuildNugetVersionFromBranch(this ICakeContext context, int major, int minor, int patch, int build, BuildNugetVersionFromBranchSettings settings)

Examples

var version = BuildNugetVersionFromBranch(1, 0, 0, 0, settings);

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)
build int The build part of the version (4th)
settings BuildNugetVersionFromBranchSettings Settings for building the version suffix. At least BranchName should be filled. Otherwise ArgumentNullException is thrown.

Return Value

Type Description
string The nuget compatible version