Summary
Active only when the branch is marked as IsDevelop.
Two different algorithms (results are merged):
Using VersionInBranchNameVersionStrategy
:
Version is that of any child branches marked with IsReleaseBranch (except if they have no commits of their own).
BaseVersionSource is the commit where the child branch was created.
Always increments.
Using TaggedCommitVersionStrategy
:
Version is extracted from all tags on the main
branch which are valid.
BaseVersionSource is the tag's commit (same as base strategy).
Increments if the tag is not the current commit (same as base strategy).
- Namespace
- GitVersion
.VersionCalculation - Interfaces
- Base Types
-
- object
- VersionStrategyBase
graph BT
Type-->Base0["VersionStrategyBase"]
click Base0 "/api/GitVersion.VersionCalculation/VersionStrategyBase"
Base0-->Base1["object"]
Type-.->Interface0["IVersionStrategy"]
click Interface0 "/api/GitVersion.VersionCalculation/IVersionStrategy"
Type["TrackReleaseBranchesVersionStrategy"]
class Type type-node
Syntax
public class TrackReleaseBranchesVersionStrategy : VersionStrategyBase, IVersionStrategy
Constructors
Properties
Name | Value | Summary |
---|---|---|
Context | GitVersionContext |
Inherited from VersionStrategyBase
|
Methods
Name | Value | Summary |
---|---|---|
GetBaseVersions |
IEnumerable |
Extension Methods
Name | Value | Summary |
---|---|---|
GetProperties |
IEnumerable |
From ObjectExtensions
|
NotNull |
T |
From CommonExtensions
|