C# 클래스 SimpleGitVersion.CIReleaseInfo

Encapsulates CI release information.
파일 보기 프로젝트 열기: SimpleGitVersion/SGV-Net 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
BaseTag ReleaseTagVersion
BuildVersion string
BuildVersionNuGet string
Depth int

공개 메소드들

메소드 설명
CreateNuGetZeroTimed ( string ciBuildName, System.DateTime timeRelease ) : string

Creates the ZeroTimed NuGetV2 version string.

CreateSemVerZeroTimed ( string ciBuildName, System.DateTime timeRelease, string actualBaseTag = null ) : string

Creates the ZeroTimed SemVer version string. The actualBaseTag, if not null, is appended as a suffix (Build metadata).

비공개 메소드들

메소드 설명
CIReleaseInfo ( ReleaseTagVersion ciBaseTag, int ciBaseDepth, string ciBuildVersion, string ciBuildVersionNuGet ) : System
Create ( Commit commit, CIBranchVersionMode ciVersionMode, string ciBuildName, StringBuilder errors, CommitVersionInfo info ) : CIReleaseInfo
ToBase62 ( long number ) : string

메소드 상세

CreateNuGetZeroTimed() 공개 정적인 메소드

Creates the ZeroTimed NuGetV2 version string.
public static CreateNuGetZeroTimed ( string ciBuildName, System.DateTime timeRelease ) : string
ciBuildName string The BuildName string (typically "develop").
timeRelease System.DateTime The utc date time of the release.
리턴 string

CreateSemVerZeroTimed() 공개 정적인 메소드

Creates the ZeroTimed SemVer version string. The actualBaseTag, if not null, is appended as a suffix (Build metadata).
public static CreateSemVerZeroTimed ( string ciBuildName, System.DateTime timeRelease, string actualBaseTag = null ) : string
ciBuildName string The BuildName string (typically "develop").
timeRelease System.DateTime The utc date time of the release.
actualBaseTag string An optional base release that will be added as build metadata.
리턴 string

프로퍼티 상세

BaseTag 공개적으로 프로퍼티

The base ReleaseTagVersion from which BuildVersion is built. It is either the the previous release or the ReleaseTagVersion.VeryFirstVersion. Null if and only if CIBuildVersion is null.
public ReleaseTagVersion,SimpleGitVersion BaseTag
리턴 ReleaseTagVersion

BuildVersion 공개적으로 프로퍼티

Not null only if we are on a branch that is enabled in RepositoryInfoOptions.Branches (either because it is the current branch or RepositoryInfoOptions.StartingBranchName specifies it), the RepositoryInfoOptions.StartingCommitSha is null or empty and there is no RepositoryInfo.ValidReleaseTag on the commit. The format is based on ReleaseTagFormat.SemVer
public string BuildVersion
리턴 string

BuildVersionNuGet 공개적으로 프로퍼티

Same as BuildVersion instead that the format is based on ReleaseTagFormat.NuGetPackage
public string BuildVersionNuGet
리턴 string

Depth 공개적으로 프로퍼티

The greatest number of commits between the current commit and the deepest occurence of BaseTag.
public int Depth
리턴 int