GitInfo 2.0.20

Exposes the following information for use directly from MSBuild, C# 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)]

Install-Package GitInfo -Version 2.0.20
dotnet add package GitInfo --version 2.0.20
<PackageReference Include="GitInfo" Version="2.0.20">
  <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.20
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Dependencies

This package has no dependencies.

Showing the top 9 GitHub repositories that depend on GitInfo:

Repository Stars
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
moq/moq4
Repo for managing Moq 4.x
VitalElement/AvalonStudio
Cross platform IDE and Shell
mono/monotorrent
The official repository for MonoTorrent, a bittorrent library for .NET
couchbase/couchbase-lite-net
A lightweight, document-oriented (NoSQL), syncable database engine for .NET
Semmle/ql
The standard QL libraries and queries that power LGTM.com and other Semmle Products
xamarin/mqtt
Minimalist and intuitive MQTT broker and client written entirely in C#
EDCD/EDDI
Companion application for Elite Dangerous

Version History

Version Downloads Last updated
2.0.20 127,641 11/13/2018
2.0.19 5,115 11/2/2018
2.0.18 49,221 9/26/2018
2.0.17 9,222 9/10/2018
2.0.16 204 9/10/2018
2.0.15 6,616 8/14/2018
2.0.14 1,080 8/3/2018
2.0.11 178,344 6/1/2018
2.0.10 20,459 2/21/2018
2.0.9 478 2/20/2018
2.0.8 10,959 11/30/2017
2.0.7 6,367 11/30/2017
2.0.6 12,533 10/22/2017
2.0.5 286 10/19/2017
2.0.3 5,555 10/18/2017
2.0.2 2,116 9/29/2017
2.0.1 73,686 8/24/2017
2.0.0 2,035 8/16/2017
1.1.72 855 8/7/2017
1.1.71 2,435 7/10/2017
1.1.70 253 7/10/2017
1.1.68 429 7/7/2017
1.1.67 460 7/4/2017
1.1.66 673 6/23/2017
1.1.65 574 6/15/2017
1.1.63 362 6/15/2017
1.1.62 1,665 6/4/2017
1.1.61 3,632 5/31/2017
1.1.60 865 5/16/2017
1.1.59 13,356 5/11/2017
1.1.58 569 5/5/2017
1.1.57 412 4/29/2017
1.1.56 309 4/28/2017
1.1.55 377 4/26/2017
1.1.54 267 4/26/2017
1.1.53 723 4/12/2017
1.1.48 2,113 2/10/2017
1.1.47 282 2/10/2017
1.1.45 1,873 1/27/2017
1.1.44 269 1/27/2017
1.1.43 363 1/25/2017
1.1.41 306 1/25/2017
1.1.40 617 1/6/2017
1.1.39 613 12/26/2016
1.1.38 472 12/26/2016
1.1.37 537 12/12/2016
1.1.35 1,087 11/29/2016
1.1.34 393 11/24/2016
1.1.31 842 9/13/2016
1.1.30 308 9/13/2016
1.1.29 910 9/3/2016
1.1.28 1,156 8/10/2016
1.1.27 399 8/8/2016
1.1.26 306 8/8/2016
1.1.25 1,222 7/28/2016
1.1.24 343 7/28/2016
1.1.23 328 7/28/2016
1.1.22 351 7/28/2016
1.1.20 1,173 6/4/2016
1.1.19 395 5/29/2016
1.1.17 332 5/26/2016
1.1.15 2,287 5/23/2016
1.1.14 1,422 5/22/2016
1.1.13 374 5/19/2016
1.1.12 2,185 4/24/2016
1.1.10 498 4/8/2016
1.1.9 375 3/31/2016
1.1.8 315 3/31/2016
1.1.7 302 3/31/2016
1.1.5 856 3/16/2016
1.1.4 318 3/16/2016
1.1.2 377 3/14/2016
1.1.1 882 3/12/2016
1.1.0 373 3/11/2016
1.0.64-pre 307 3/12/2016
1.0.63-pre 304 3/12/2016
1.0.62-pre 337 3/12/2016
1.0.61-pre 389 3/12/2016
1.0.60-pre 310 3/11/2016
1.0.59-pre 343 3/11/2016
1.0.58-pre 338 3/11/2016
1.0.56-pre 2,516 1/9/2016
1.0.55-pre 1,178 1/7/2016
1.0.54-pre 706 12/14/2015
1.0.53-pre 368 12/10/2015
1.0.52-pre 593 12/10/2015
1.0.51-pre 372 12/10/2015
1.0.50-pre 382 12/9/2015
1.0.49-pre 1,487 10/5/2015
1.0.48-pre 410 10/3/2015
1.0.47-pre 457 9/2/2015
1.0.46-pre 340 9/2/2015
1.0.45-pre 371 9/1/2015
1.0.44-pre 359 9/1/2015
1.0.43-pre 346 9/1/2015
1.0.42-pre 352 8/18/2015
1.0.41-pre 358 8/7/2015
1.0.40-pre 334 7/19/2015
1.0.39-pre 338 7/10/2015
1.0.38-pre 361 6/26/2015
1.0.37-pre 333 6/26/2015
1.0.36-pre 331 6/26/2015
1.0.35-pre 337 6/26/2015
1.0.34-pre 336 6/24/2015
1.0.33-pre 432 6/17/2015
1.0.31-pre 342 6/16/2015
1.0.30-pre 327 6/16/2015
1.0.29-pre 326 6/16/2015
1.0.28-pre 334 6/16/2015
1.0.27-pre 341 6/16/2015
1.0.26-pre 375 6/15/2015
1.0.25-pre 342 6/14/2015
1.0.24-pre 356 6/11/2015
1.0.23-pre 359 6/8/2015
1.0.22-pre 337 6/8/2015
1.0.21-pre 335 6/8/2015
1.0.20-pre 339 6/8/2015
1.0.19-pre 341 6/8/2015
1.0.18-pre 333 6/8/2015
1.0.16-pre 331 6/5/2015
1.0.15-pre 345 6/5/2015
1.0.14-pre 360 6/4/2015
1.0.11-pre 333 6/3/2015
1.0.10-pre 338 6/3/2015
1.0.9-pre 325 6/3/2015
1.0.8-pre 336 6/3/2015
1.0.7-pre 397 6/3/2015
1.0.6-pre 330 6/3/2015
1.0.5-pre 330 6/3/2015
1.0.4-pre 339 6/3/2015
1.0.3-pre 335 6/3/2015
1.0.1-pre 332 6/3/2015
1.0.0 370 2/22/2016
1.0.0-pre 332 5/26/2015