Skip to content

Get assembly to be built with patch related info #1775

@wolfcomp

Description

@wolfcomp

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:

  1. Tags on specific parts of the commit history to build in Major and Minor into the info.
  2. 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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions