C# 클래스 SimpleGitVersion.SimpleRepositoryInfo

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

Private Properties

프로퍼티 타입 설명
HandleRepositoryInfoError bool

공개 메소드들

메소드 설명
BuildAssemblyVersionAttributesFile ( string toolName = "SimpleGitVersion.Core", string assemblyInformationalVersionInfo = null ) : string

Builds a standard assembly version attributes file.

FomatStandardAssemblyInformationalVersionInfo ( string nuGetVersion, string commitSha, string userName ) : string

Fomats the standard assembly informational version information: "NuGetVersion Sha:... User:..."

FormatAssemblyVersionAttributesFile ( string majorMinor, string fileVersion, string semVer, string toolName, string assemblyInformationalVersionInfo ) : string

Formats the assembly version attributes file.

LoadFromPath ( ILogger logger, string path, Action optionsChecker = null ) : SimpleRepositoryInfo

Creates a new SimpleRepositoryInfo based on a path (that can be below the folder with the '.git' sub folder).

LogValidVersions ( ILogger logger, RepositoryInfo info ) : void
SetInvalidValues ( string reason ) : void
SetInvalidValuesAndLog ( ILogger logger, string reason, bool isWarning ) : void
SetNumericalVersionValues ( ReleaseTagVersion t, bool isCIBuild ) : void
SimpleRepositoryInfo ( ILogger logger, RepositoryInfo info ) : System

Initializes a new SimpleRepositoryInfo based on a (more complex) Info.

비공개 메소드들

메소드 설명
HandleRepositoryInfoError ( ILogger logger, RepositoryInfo info ) : bool

메소드 상세

BuildAssemblyVersionAttributesFile() 공개 메소드

Builds a standard assembly version attributes file.
public BuildAssemblyVersionAttributesFile ( string toolName = "SimpleGitVersion.Core", string assemblyInformationalVersionInfo = null ) : string
toolName string Name of the tool.
assemblyInformationalVersionInfo string /// The assembly informational version information. /// Defaults to . ///
리턴 string

FomatStandardAssemblyInformationalVersionInfo() 공개 정적인 메소드

Fomats the standard assembly informational version information: "NuGetVersion Sha:... User:..."
public static FomatStandardAssemblyInformationalVersionInfo ( string nuGetVersion, string commitSha, string userName ) : string
nuGetVersion string The NuGet version.
commitSha string The commit sha.
userName string Name of the user.
리턴 string

FormatAssemblyVersionAttributesFile() 공개 정적인 메소드

Formats the assembly version attributes file.
public static FormatAssemblyVersionAttributesFile ( string majorMinor, string fileVersion, string semVer, string toolName, string assemblyInformationalVersionInfo ) : string
majorMinor string The major.minor: this is used for the AssemblVersion.
fileVersion string The file version (4 numbers between 0 and 65535.
semVer string The semantic version version.
toolName string Name of the tool.
assemblyInformationalVersionInfo string The assembly informational version information.
리턴 string

LoadFromPath() 공개 정적인 메소드

Creates a new SimpleRepositoryInfo based on a path (that can be below the folder with the '.git' sub folder).
public static LoadFromPath ( ILogger logger, string path, Action optionsChecker = null ) : SimpleRepositoryInfo
logger ILogger Logger that will be used.
path string The path to lookup.
optionsChecker Action /// Optional action that accepts the logger, a boolean that is true if a RepositoryInfo.xml has been /// found, and the that will be used. ///
리턴 SimpleRepositoryInfo

LogValidVersions() 공개 메소드

public LogValidVersions ( ILogger logger, RepositoryInfo info ) : void
logger ILogger
info RepositoryInfo
리턴 void

SetInvalidValues() 공개 메소드

public SetInvalidValues ( string reason ) : void
reason string
리턴 void

SetInvalidValuesAndLog() 공개 메소드

public SetInvalidValuesAndLog ( ILogger logger, string reason, bool isWarning ) : void
logger ILogger
reason string
isWarning bool
리턴 void

SetNumericalVersionValues() 공개 메소드

public SetNumericalVersionValues ( ReleaseTagVersion t, bool isCIBuild ) : void
t ReleaseTagVersion
isCIBuild bool
리턴 void

SimpleRepositoryInfo() 공개 메소드

Initializes a new SimpleRepositoryInfo based on a (more complex) Info.
public SimpleRepositoryInfo ( ILogger logger, RepositoryInfo info ) : System
logger ILogger Logger that will be used.
info RepositoryInfo The simplified repository information.
리턴 System