GitInfo 2.0.38

Exposes the following information for use directly from MSBuild, C#, F# and VB:
 $(GitBranch), ThisAssembly.Git.Branch
 $(GitCommit), ThisAssembly.Git.Commit
 $(GitSha), ThisAssembly.Git.Sha
 $(GitBaseVersionMajor), ThisAssembly.Git.BaseVersion.Major
 $(GitBaseVersionMinor), ThisAssembly.Git.BaseVersion.Minor
 $(GitBaseVersionPatch), ThisAssembly.Git.BaseVersion.Patch
 $(GitCommits), ThisAssembly.Git.Commits
 $(GitTag), ThisAssembly.Git.Tag
 $(GitBaseTag), ThisAssembly.Git.BaseTag
 $(GitSemVerMajor), ThisAssembly.Git.SemVer.Major
 $(GitSemVerMinor), ThisAssembly.Git.SemVer.Minor
 $(GitSemVerPatch), ThisAssembly.Git.SemVer.Patch
 $(GitSemVerLabel), ThisAssembly.Git.SemVer.Label
 $(GitSemVerDashLabel), ThisAssembly.Git.SemVer.DashLabel
 $(GitSemVerSource), ThisAssembly.Git.SemVer.Source
 $(GitIsDirty), ThisAssembly.Git.IsDirty

The generated code contains only constants, so it can be used to construct your own assembly/file version attributes:

[assembly: AssemblyVersion(ThisAssembly.Git.SemVer.Major + "." + ThisAssembly.Git.SemVer.Minor + ".0")]
[assembly: AssemblyInformationalVersion(ThisAssembly.Git.SemVer.Major + "." +
ThisAssembly.Git.SemVer.Minor + "." + ThisAssembly.Git.SemVer.Patch + "-" +
ThisAssembly.Git.Branch + "+" + ThisAssembly.Git.Commit)]

There is a newer version of this package available.
See the version list below for details.
Install-Package GitInfo -Version 2.0.38
dotnet add package GitInfo --version 2.0.38
<PackageReference Include="GitInfo" Version="2.0.38">
  <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 GitInfo --version 2.0.38
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: GitInfo, 2.0.38"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install GitInfo as a Cake Addin
#addin nuget:?package=GitInfo&version=2.0.38

// Install GitInfo as a Cake Tool
#tool nuget:?package=GitInfo&version=2.0.38
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Dependencies

This package has no dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on GitInfo:

Package Downloads
Aqovia.PactProducerVerifier.AspNetCore
Pact Producer Test for aspnet core sites
Zooqle.Net
A .NET Standard library for searching torrents on Zooqle.
Xamarin.VisualStudio.AndroidX.Migration
This package provides a Roslyn based migrator to be used in Visual Studio and Visual Studio for Mac.
BizStream.NET.Sdk
Core build and release configuration for packages and libraries distributed by BizStream.

GitHub repositories (17)

Showing the top 5 popular GitHub repositories that depend on GitInfo:

Repository Stars
dotnet/maui
.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
gitextensions/gitextensions
Git Extensions is a standalone UI tool for managing git repositories. It also integrates with Windows Explorer and Microsoft Visual Studio (2015/2017/2019).
xamarin/Xamarin.Forms
Xamarin.Forms Official Home
EventStore/EventStore
The stream database optimised for event sourcing
moq/moq4
Repo for managing Moq 4.x

Version History

Version Downloads Last updated
2.1.2 161,504 9/24/2020
2.1.1 308 9/24/2020
2.0.40 625 9/24/2020
2.0.39 650 9/23/2020
2.0.38 903 9/21/2020
2.0.37 612 9/20/2020
2.0.36 258 9/20/2020
2.0.35 277 9/20/2020
2.0.34 4,054 9/11/2020
2.0.33 7,483 8/28/2020
2.0.32 187 8/28/2020
2.0.31 40,395 8/3/2020
2.0.30 3,613 7/27/2020
2.0.29 3,652 7/22/2020
2.0.28 216 7/22/2020
2.0.27 189 7/22/2020
2.0.26 246,606 12/16/2019
2.0.25 903 12/13/2019
2.0.21 60,740 10/15/2019
2.0.20 449,061 11/13/2018
2.0.19 8,837 11/2/2018
2.0.18 89,449 9/26/2018
2.0.17 11,755 9/10/2018
2.0.16 515 9/10/2018
2.0.15 13,303 8/14/2018
2.0.14 1,617 8/3/2018
2.0.11 322,258 6/1/2018
2.0.10 31,059 2/21/2018
2.0.9 829 2/20/2018
2.0.8 12,095 11/30/2017
2.0.7 6,730 11/30/2017
2.0.6 15,656 10/22/2017
2.0.5 606 10/19/2017
2.0.3 6,002 10/18/2017
2.0.2 2,587 9/29/2017
2.0.1 85,856 8/24/2017
2.0.0 3,064 8/16/2017
1.1.72 1,358 8/7/2017
1.1.71 4,312 7/10/2017
1.1.70 566 7/10/2017
1.1.68 763 7/7/2017
1.1.67 842 7/4/2017
1.1.66 1,001 6/23/2017
1.1.65 887 6/15/2017
1.1.63 755 6/15/2017
1.1.62 2,008 6/4/2017
1.1.61 3,964 5/31/2017
1.1.60 1,336 5/16/2017
1.1.59 15,497 5/11/2017
1.1.58 890 5/5/2017
1.1.57 729 4/29/2017
1.1.56 618 4/28/2017
1.1.55 707 4/26/2017
1.1.54 593 4/26/2017
1.1.53 1,204 4/12/2017
1.1.48 2,623 2/10/2017
1.1.47 602 2/10/2017
1.1.45 2,203 1/27/2017
1.1.44 590 1/27/2017
1.1.43 679 1/25/2017
1.1.41 625 1/25/2017
1.1.40 936 1/6/2017
1.1.39 932 12/26/2016
1.1.38 1,114 12/26/2016
1.1.37 875 12/12/2016
1.1.35 1,497 11/29/2016
1.1.34 788 11/24/2016
1.1.31 1,213 9/13/2016
1.1.30 620 9/13/2016
1.1.29 1,234 9/3/2016
1.1.28 1,494 8/10/2016
1.1.27 749 8/8/2016
1.1.26 638 8/8/2016
1.1.25 1,907 7/28/2016
1.1.24 662 7/28/2016
1.1.23 645 7/28/2016
1.1.22 679 7/28/2016
1.1.20 1,525 6/4/2016
1.1.19 707 5/29/2016
1.1.17 652 5/26/2016
1.1.15 2,626 5/23/2016
1.1.14 1,770 5/22/2016
1.1.13 698 5/19/2016
1.1.12 2,516 4/24/2016
1.1.10 816 4/8/2016
1.1.9 698 3/31/2016
1.1.8 647 3/31/2016
1.1.7 629 3/31/2016
1.1.5 1,179 3/16/2016
1.1.4 654 3/16/2016
1.1.2 710 3/14/2016
1.1.1 1,225 3/12/2016
1.1.0 717 3/11/2016
1.0.64-pre 608 3/12/2016
1.0.63-pre 613 3/12/2016
1.0.62-pre 677 3/12/2016
1.0.61-pre 715 3/12/2016
1.0.60-pre 612 3/11/2016
1.0.59-pre 682 3/11/2016
1.0.58-pre 631 3/11/2016
1.0.56-pre 2,869 1/9/2016
1.0.55-pre 1,491 1/7/2016
1.0.54-pre 1,105 12/14/2015
1.0.53-pre 698 12/10/2015
1.0.52-pre 912 12/10/2015
1.0.51-pre 705 12/10/2015
1.0.50-pre 714 12/9/2015
1.0.49-pre 1,963 10/5/2015
1.0.48-pre 736 10/3/2015
1.0.47-pre 785 9/2/2015
1.0.46-pre 651 9/2/2015
1.0.45-pre 688 9/1/2015
1.0.44-pre 662 9/1/2015
1.0.43-pre 650 9/1/2015
1.0.42-pre 666 8/18/2015
1.0.41-pre 668 8/7/2015
1.0.40-pre 634 7/19/2015
1.0.39-pre 647 7/10/2015
1.0.38-pre 660 6/26/2015
1.0.37-pre 646 6/26/2015
1.0.36-pre 628 6/26/2015
1.0.35-pre 644 6/26/2015
1.0.34-pre 648 6/24/2015
1.0.33-pre 744 6/17/2015
1.0.31-pre 670 6/16/2015
1.0.30-pre 637 6/16/2015
1.0.29-pre 631 6/16/2015
1.0.28-pre 640 6/16/2015
1.0.27-pre 647 6/16/2015
1.0.26-pre 680 6/15/2015
1.0.25-pre 666 6/14/2015
1.0.24-pre 661 6/11/2015
1.0.23-pre 657 6/8/2015
1.0.22-pre 649 6/8/2015
1.0.21-pre 644 6/8/2015
1.0.20-pre 664 6/8/2015
1.0.19-pre 648 6/8/2015
1.0.18-pre 646 6/8/2015
1.0.16-pre 639 6/5/2015
1.0.15-pre 661 6/5/2015
1.0.14-pre 687 6/4/2015
1.0.11-pre 650 6/3/2015
1.0.10-pre 653 6/3/2015
1.0.9-pre 642 6/3/2015
1.0.8-pre 637 6/3/2015
1.0.7-pre 698 6/3/2015
1.0.6-pre 627 6/3/2015
1.0.5-pre 641 6/3/2015
1.0.4-pre 649 6/3/2015
1.0.3-pre 631 6/3/2015
1.0.1-pre 639 6/3/2015
1.0.0 700 2/22/2016
1.0.0-pre 634 5/26/2015
0.0.196 194 10/14/2020
0.0.195 178 10/5/2020
0.0.194 366 9/24/2020