GitTagger.Cli 1.2.9

dotnet tool install --global GitTagger.Cli --version 1.2.9                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local GitTagger.Cli --version 1.2.9                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=GitTagger.Cli&version=1.2.9                
nuke :add-package GitTagger.Cli --version 1.2.9                

GitTagger

USAGE
  GitTagger.Cli [options]
  GitTagger.Cli [command] [...]

DESCRIPTION
  Running wihout parameters will dry-run and show version for current commit

OPTIONS
  --path            Path to project/repository Default: ".".
  --release-branch  Mainline branch Default: "master".
  --develop-branch  Patch/work branch Default: "develop".
  -h|--help         Shows help text.
  --version         Shows version information.

COMMANDS
  bump              Bump version with options
  tag               Tags the repository with the current version
Versions set:
master      A -- B (1.0.0.2) --- C ------------------------ D -------------------------- E (1.1.0.5) --- F ---- G (1.2.0.7)
                  \                                                                     /                      /
develop            B (1.0.0.2) - C (1.0.1.3) -------------- D ------------------------ E (1.0.2.5) --- F ---- G (1.0.3.7)
                                / \                                                   /                      /
dev/some-1                     |   C (1.0.2.3-dev-some-1) - D (1.0.2.4-dev-some-1) - E (1.0.2.5-dev-some-1) /
                               |                                                                           /
dev/some-2                     C (1.0.2.3-dev-some-2) ------------------------ F (1.0.2.4-dev-some-2) --- G (1.0.2.5-dev-some-2)
csproj code for autoset:
...
<Target Name="PopulateInfo" BeforeTargets="GetAssemblyVersion;GenerateNuspec;GetPackageContents">
	<PropertyGroup>
		<Version>$(GitTag)</Version>
		<PackageVersion>$(Version)</PackageVersion>

		<RepositoryBranch>$(GitBranch)</RepositoryBranch>
		<RepositoryCommit>$(GitCommit)</RepositoryCommit>
		<SourceRevisionId>$(GitBranch) $(GitCommit)</SourceRevisionId>
	</PropertyGroup>
</Target>

<Target Name="SetSourceRevisionId" BeforeTargets="GenerateAssemblyInfo" AfterTargets="GitInfo">
	<Exec Command="dotnet tool install --local --create-manifest-if-needed GitTagger.Cli" ConsoleToMSBuild="True" IgnoreExitCode="False" />
	<Exec Command="dotnet tool run git-tagger tag" ConsoleToMSBuild="True" IgnoreExitCode="False" />
</Target>
...
<ItemGroup>
  ...
  <PackageReference Include="GitInfo" Version="3.3.4">
    <PrivateAssets>all</PrivateAssets>
    <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  </PackageReference>
</ItemGroup>
csproj code for set via file version.info
<Target Name="SetSourceRevisionId" BeforeTargets="GenerateAssemblyInfo;BeforeBuild">
	<Exec Command="dotnet tool install --local --create-manifest-if-needed GitTagger.Cli" ConsoleToMSBuild="True" IgnoreExitCode="False" />
	<Exec Command="dotnet tool run git-tagger tag --to-file --to-file-path $(IntermediateOutputPath)" ConsoleToMSBuild="True" IgnoreExitCode="False" />
</Target>

<Target Name="GetFileContent" AfterTargets="SetSourceRevisionId">
	<PropertyGroup>
		<FilePath>$(IntermediateOutputPath)\version.info</FilePath>
		<FileData>$([System.IO.File]::ReadAllText($(FilePath)))</FileData>
		<VersionInfo>$([System.String]::Copy( $(FileData) ).Split( ';' )[ 0 ])</VersionInfo>
		<VersionNumber>$([System.String]::Copy( $(FileData) ).Split( ';' )[ 1 ])</VersionNumber>
		<VersionLabel>$([System.String]::Copy( $(FileData) ).Split( ';' )[ 2 ])</VersionLabel>
	</PropertyGroup>
</Target>

<Target Name="PopulateInfo" AfterTargets="GetFileContent">
	<Message Text="version.info: $(VersionInfo)" Importance="high" />
	<Message Text="              $(VersionNumber)" Importance="high" />
	<Message Text="              $(VersionLabel)" Importance="high" />
	<PropertyGroup>
		<Version>$(VersionInfo)</Version>
		<PackageVersion>$(VersionInfo)</PackageVersion>

		<VersionPrefix>$(VersionInfo)</VersionPrefix>
		<VesionSufix>$(VersionLabel)</VesionSufix>
		<AssemblyVersion>$(VersionNumber)</AssemblyVersion>
		<FileVersion>$(VersionNumber)</FileVersion>
		<InformationalVersion>$(VersionInfo)</InformationalVersion>
	</PropertyGroup>
</Target>
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
1.2.9 109 10/7/2024
1.2.8 114 9/10/2024
1.2.7.18 69 7/31/2024
1.2.6.17 72 7/30/2024
1.2.5.16 70 7/30/2024
1.2.4.14 49 7/29/2024
1.2.2.12 102 5/10/2024
1.2.1.5 75 5/2/2024