Currently we use a package called GitInfo with this there exists a ThisAssembly.Git path for accessing different build information from the library but currently only these properties are set to a non empty or zero string:
RepositoryUrl
Branch
Commit
Sha
CommitDate
Commits
SemVer.Patch
There exists also the following fields which are currently set to empty or zero string:
Tag
BaseTag
BaseVersion.Major
BaseVersion.Minor
BaseVersion.Patch
SemVer.Major
SemVer.Minor
SemVer.Label
SemVer.DashLabel
These fields being set by either branch, tag or version file contents.
Question becomes for easier checking of current state of the library to add:
- Tags on specific parts of the commit history to build in
Major and Minor into the info.
- Override the build properties of
GitInfo to manually set the assembly library version.
Example of overriding the info:
<PropertyGroup>
<GitVersion>false</GitVersion>
<AssemblyVersion>7.4.5.2</AssemblyVersion>
</PropertyGroup>
Currently we use a package called
GitInfowith this there exists aThisAssembly.Gitpath for accessing different build information from the library but currently only these properties are set to a non empty or zero string:RepositoryUrlBranchCommitShaCommitDateCommitsSemVer.PatchThere exists also the following fields which are currently set to empty or zero string:
TagBaseTagBaseVersion.MajorBaseVersion.MinorBaseVersion.PatchSemVer.MajorSemVer.MinorSemVer.LabelSemVer.DashLabelThese fields being set by either
branch,tagorversion file contents.Question becomes for easier checking of current state of the library to add:
MajorandMinorinto the info.GitInfoto manually set the assembly library version.Example of overriding the info: