Search Results for

    Show / Hide Table of Contents

    Class GitVersionBuildStep

    Logic for the build step that applies the git version

    Inheritance
    Object
    GitVersionBuildStep
    Namespace: i5.Toolkit.Core.VersionTool
    Assembly: cs.temp.dll.dll
    Syntax
    public class GitVersionBuildStep

    Constructors

    GitVersionBuildStep()

    Creates a new instance of the build logic step

    Declaration
    public GitVersionBuildStep()

    Fields

    toolName

    Declaration
    public const string toolName = "Version Tool"
    Field Value
    Type Description
    String

    Properties

    AndroidVersion

    Calculates the version for Android installation packages This value is based on the number of commits in git on this branch

    Declaration
    public int AndroidVersion { get; }
    Property Value
    Type Description
    Int32

    Returns an integer number that is increased with each git commit

    WSAVersion

    Calculates the version which can be applied to WSA packages e.g. for UWP builds The version is extracted from the version string

    Declaration
    public Version WSAVersion { get; }
    Property Value
    Type Description
    Version

    Returns the version for the WSA packages

    Methods

    ContainsPlaceholder(String)

    Declaration
    public bool ContainsPlaceholder(string versionString)
    Parameters
    Type Name Description
    String versionString
    Returns
    Type Description
    Boolean

    ReplacePlaceholders(String)

    Replaces all registered placeholders in the given version string

    Declaration
    public string ReplacePlaceholders(string versionString)
    Parameters
    Type Name Description
    String versionString

    The version string that contains placeholders

    Returns
    Type Description
    String

    The version string where placeholders are replaced by the calculated values

    In This Article
    Back to top i5 Toolkit Documentation