Property | Type | Description | |
---|---|---|---|
HandleRepositoryInfoError | bool |
Method | Description | |
---|---|---|
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 |
Creates a new SimpleRepositoryInfo based on a path (that can be below the folder with the '.git' sub folder).
|
|
LogValidVersions ( ILogger logger, |
||
SetInvalidValues ( string reason ) : void | ||
SetInvalidValuesAndLog ( ILogger logger, string reason, bool isWarning ) : void | ||
SetNumericalVersionValues ( |
||
SimpleRepositoryInfo ( ILogger logger, |
Initializes a new SimpleRepositoryInfo based on a (more complex) Info.
|
Method | Description | |
---|---|---|
HandleRepositoryInfoError ( ILogger logger, |
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 |
return | string |
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. |
return | string |
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. |
return | string |
public static LoadFromPath ( ILogger logger, string path, Action |
||
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 |
return |
public LogValidVersions ( ILogger logger, |
||
logger | ILogger | |
info | ||
return | void |
public SetInvalidValues ( string reason ) : void | ||
reason | string | |
return | void |
public SetInvalidValuesAndLog ( ILogger logger, string reason, bool isWarning ) : void | ||
logger | ILogger | |
reason | string | |
isWarning | bool | |
return | void |
public SetNumericalVersionValues ( |
||
t | ||
isCIBuild | bool | |
return | void |
public SimpleRepositoryInfo ( ILogger logger, |
||
logger | ILogger | Logger that will be used. |
info | The simplified repository information. | |
return | System |