GitVersion Class

Summary

GitVersion. Implements the System.IEquatable`1
Assembly
Rocket.Surgery.Build.Information.dll
Namespace
Rocket.Surgery.Build.Information
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IEquatable<GitVersion>"] Type["GitVersion"] class Type type-node

Syntax

public sealed class GitVersion : IEquatable<GitVersion>

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Properties

Name Value Summary
AssemblySemVer string
Gets the assembly sem ver.
BranchName string
Gets the name of the branch.
BuildMetaData string
Gets the build meta data.
BuildMetaDataPadded string
Gets the build meta data padded.
CommitDate string
Gets the commit date.
CommitsSinceVersionSource int
Gets the commits since version source.
CommitsSinceVersionSourcePadded string
Gets the commits since version source padded.
FullBuildMetaData string
Gets the full build meta data.
FullSemVer string
Gets the full sem ver.
HasVersion bool
Does this assembly has any of these attributes?
InformationalVersion string
Gets the informational version.
LegacySemVer string
Gets the legacy sem ver.
LegacySemVerPadded string
Gets the legacy sem ver padded.
Major int
Gets the major.
MajorMinorPatch string
Gets the major minor patch.
Minor int
Gets the minor.
NuGetVersion string
Gets the nu get version.
NuGetVersionV2 string
Gets the nu get version v2.
Patch int
Gets the patch.
PreReleaseTag string
Gets the pre release tag.
PreReleaseTagWithDash string
Gets the pre release tag with dash.
RepositoryUrl string
Gets the repository url.
SemVer string
Gets the sem ver.
Sha string
Gets the sha.

Methods

Name Value Summary
Equals(GitVersion) bool
Indicates whether the current object is equal to another object of the same type.
Equals(object) bool
Determines whether the specified object is equal to this instance.
For(Assembly) GitVersion
Fors the specified assembly.
static
For(Assembly[]) IDictionary<Assembly, GitVersion>
Fors the specified assemblies.
static
For(IEnumerable<Assembly>) IDictionary<Assembly, GitVersion>
Fors the specified assemblies.
static
For(IEnumerable<Type>) IDictionary<Assembly, GitVersion>
Fors the specified types.
static
For(IEnumerable<TypeInfo>) IDictionary<Assembly, GitVersion>
Fors the specified type infos.
static
For(Type) GitVersion
Fors the specified type.
static
For(Type[]) IDictionary<Assembly, GitVersion>
Fors the specified types.
static
For(TypeInfo) GitVersion
Fors the specified type information.
static
For(TypeInfo[]) IDictionary<Assembly, GitVersion>
Fors the specified type infos.
static
GetHashCode() int
Returns a hash code for this instance.

Operators

Name Value Summary
operator !=(GitVersion, GitVersion) bool
operator ==(GitVersion, GitVersion) bool

Extension Methods

See Also

  • System.IEquatable`1