This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Nuget.Versioning.
Summary
Settings how to convert branch name to SemVer 2.0.0 suffix
- Assembly
- Cake
.Nuget .Versioning .dll - Namespace
- Cake
.Nuget .Versioning - Base Types
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
Name | Summary |
---|---|
Build |
Properties
Name | Value | Summary |
---|---|---|
Always |
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
Inherited from Build
|
BranchChangeNumber | Nullable |
Ordered commit number
|
BranchName | string |
The name of the branch
Inherited from Build
|
BranchPrefix | string |
Branch prefix what is applied as a prefix before the branch name
Default value: b-
Inherited from Build
|
FilterGitReferences | bool |
If true "refs/heads/", "refs/tags/" and "refs/remotes/" are trimmed from the beginning of the branch name.
Default value: true
Inherited from Build
|
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$" }
Inherited from Build
|
TrimPatterns | string[] |
Regexp patterns which are trimmed off from the branch name.
Default value: null
Inherited from Build
|
Extension Methods
Name | Value | Summary |
---|---|---|
Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
NotNull |
void |
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
From StringExtensions
Requires the Cake.Issues addin
|