Interface IVersionManager
Managing version of package
Namespace: BuildSystem.ManagerObject.Interfaces
Assembly: BuildSystem.ManagerObject.Interfaces.dll
Syntax
public interface IVersionManager : IManager
Methods
CalcNextVersion(IPackageProps, bool, GetVersionList, GetPackageInfo)
Increment version. Returns non-incremented version if package with same hash already exists on server
Declaration
bool CalcNextVersion(IPackageProps packageProps, bool force, GetVersionList getVersionList, GetPackageInfo getPackageInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| IPackageProps | packageProps | Properties of updating package |
| bool | force | Force increase, even if package with same hash exists on server |
| GetVersionList | getVersionList | Function to get all available versions from package repository |
| GetPackageInfo | getPackageInfo | Function to get all information from package repository |
Returns
| Type | Description |
|---|---|
| bool | True if version was changed |
VersionIsSuitable(VersionProp)
Return flag, that version accord to current branch
Declaration
bool VersionIsSuitable(VersionProp version)
Parameters
| Type | Name | Description |
|---|---|---|
| VersionProp | version |
Returns
| Type | Description |
|---|---|
| bool |