ConventionalCommitsGitInfo 0.3.6

dotnet add package ConventionalCommitsGitInfo --version 0.3.6                
NuGet\Install-Package ConventionalCommitsGitInfo -Version 0.3.6                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ConventionalCommitsGitInfo" Version="0.3.6">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ConventionalCommitsGitInfo --version 0.3.6                
#r "nuget: ConventionalCommitsGitInfo, 0.3.6"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ConventionalCommitsGitInfo as a Cake Addin
#addin nuget:?package=ConventionalCommitsGitInfo&version=0.3.6

// Install ConventionalCommitsGitInfo as a Cake Tool
#tool nuget:?package=ConventionalCommitsGitInfo&version=0.3.6                

ConventionalCommitsGitInfo

Once installed, this library adds a SetSemanticVersion target that sets the following properties:

<PropertyGroup>
    <Version>$(_Version)</Version>
    <FileVersion>$(Version)</FileVersion>
    <PackageVersion>$(Version)</PackageVersion>
    <PackageReleaseNotes>$(_ReleaseNotes)</PackageReleaseNotes>
</PropertyGroup>

Versions will be calculated according to Conventional Commits specification specifications:

  • For each BREAKING CHANGE: the major version will be increased
  • For each feat: the minor version will be increased
  • For each fix: the patch version will be increased

There are two behaviors here, for new libraries with no commit history, and for adapting old libraries:

  1. For new libraries versioning starts from version 0.1.0.
  2. For older versions, you need to specify the commit ID from which versioning will start and the base version.

PackageReleaseNotes will contain text like this:

⭐ Last 10 features:
Added ability to set up custom OnChanged method.
Added OnChanged/OnChanging implementation detection to remove unused callbacks.
Added possibility of embedding attributes.
🐞 Last 10 bug fixes:
Fixed bug with AttachedDependencyProperty method detection.
Fixed Nullable value type generation.
Fixed issues with BindEvents after detection feature.

Install

NuGet

Install-Package ConventionalCommitsGitInfo

Settings

Default settings are shown here:

  <Target Name="SetSemanticVersionSettings" BeforeTargets="SetSemanticVersion">
    <PropertyGroup>
        
        <ConventionalCommitsGitInfo_BaseVersion>0.1.0</ConventionalCommitsGitInfo_BaseVersion>
        
        <ConventionalCommitsGitInfo_BaseCommit></ConventionalCommitsGitInfo_BaseCommit>
        
        <ConventionalCommitsGitInfo_ReleaseNotesCount>10</ConventionalCommitsGitInfo_ReleaseNotesCount>
        
        <ConventionalCommitsGitInfo_MessageImportance>low</ConventionalCommitsGitInfo_MessageImportance>
    </PropertyGroup>
  </Target>
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETFramework 4.7.2

    • No dependencies.
  • net6.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.3.6 1,834 8/1/2022
0.3.5 800 6/19/2022
0.3.4 426 6/12/2022
0.3.3 454 6/7/2022
0.3.2 436 6/7/2022
0.3.1 444 6/6/2022
0.3.0 424 6/6/2022
0.2.0 426 6/6/2022
0.1.3 415 6/4/2022
0.1.2 434 6/4/2022
0.1.1 429 6/4/2022
0.1.0 433 6/4/2022