BuildNugetVersionFromBranchSemVer200Settings Class

Summary

Settings how to convert branch name to SemVer 2.0.0 suffix
graph BT Type-->Base0["BuildNugetVersionFromBranchSettings"] click Base0 "/api/Cake.Nuget.Versioning/BuildNugetVersionFromBranchSettings" Base0-->Base1["Object"] Type["BuildNugetVersionFromBranchSemVer200Settings"] class Type type-node

Syntax

public class BuildNugetVersionFromBranchSemVer200Settings : BuildNugetVersionFromBranchSettings

Constructors

Properties

Name Value Summary
AlwaysApplyBranchPrefix bool
By default branch prefix is only applied when the branch name is not complatible as a version suffix. Eg. starts with numbers. If true branch prefix is always applied. Default value: false
BranchChangeNumber Nullable<int>
Ordered commit number
BranchName string
The name of the branch
BranchPrefix string
Branch prefix what is applied as a prefix before the branch name Default value: b-
FilterGitReferences bool
If true "refs/heads/", "refs/tags/" and "refs/remotes/" are trimmed from the beginning of the branch name. Default value: true
Hash string
Hash of the last commit
PreReleaseFilters string[]
If the branch name match with one of the regexp in this array, the branch is identified as a final branch. The version won't contain pre-release suffix. Default value: new[] { "^master$" }
TrimPatterns string[]
Regexp patterns which are trimmed off from the branch name. Default value: null

Extension Methods

Name Value Summary
Dump<BuildNugetVersionFromBranchSemVer200Settings>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<BuildNugetVersionFromBranchSemVer200Settings>(BuildNugetVersionFromBranchSemVer200Settings[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<BuildNugetVersionFromBranchSemVer200Settings>(string) void
Requires the Cake.Issues addin
NotNull<BuildNugetVersionFromBranchSemVer200Settings>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
ThrowIfNull<BuildNugetVersionFromBranchSemVer200Settings>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<BuildNugetVersionFromBranchSemVer200Settings>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Requires the Cake.Issues addin