NugetVersioningAliases.

BuildNugetVersionFromBranchSemVer200(ICakeContext, int, int, int, BuildNugetVersionFromBranchSemVer200Settings) Method

Summary

Build a Nuget 3.0 compatible version from a branch. (SemVer 2.0.0)

Syntax

public static string BuildNugetVersionFromBranchSemVer200(this ICakeContext context, int major, int minor, int patch, BuildNugetVersionFromBranchSemVer200Settings settings)

Examples

var version = BuildNugetVersionFromBranchSemVer200(1, 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)
settings BuildNugetVersionFromBranchSemVer200Settings 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