GitInfo 2.0.31

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

Dependencies

This package has no dependencies.

NuGet packages (5)

Showing the top 5 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.
xmisc.core.text
Input/Output utilities and extensions.
PowerMVVM.Commands
A powerful, framework independent Commanding library. Implements Commands as you would expect them to be - synchronous, asynchronous, one time executable, ... Comes with a very simple API for testing your command implementations.

GitHub repositories (12)

Showing the top 5 popular 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
dotnet/maui
.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
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 205 9/24/2020
2.1.1 89 9/24/2020
2.0.40 47 9/24/2020
2.0.39 183 9/23/2020
2.0.38 399 9/21/2020
2.0.37 212 9/20/2020
2.0.36 119 9/20/2020
2.0.35 126 9/20/2020
2.0.34 1,372 9/11/2020
2.0.33 3,472 8/28/2020
2.0.32 53 8/28/2020
2.0.31 9,130 8/3/2020
2.0.30 2,436 7/27/2020
2.0.29 1,541 7/22/2020
2.0.28 69 7/22/2020
2.0.27 45 7/22/2020
2.0.26 143,718 12/16/2019
2.0.25 635 12/13/2019
2.0.21 40,943 10/15/2019
2.0.20 336,264 11/13/2018
2.0.19 8,127 11/2/2018
2.0.18 76,827 9/26/2018
2.0.17 11,130 9/10/2018
2.0.16 306 9/10/2018
2.0.15 9,890 8/14/2018
2.0.14 1,361 8/3/2018
2.0.11 295,283 6/1/2018
2.0.10 26,580 2/21/2018
2.0.9 609 2/20/2018
2.0.8 11,563 11/30/2017
2.0.7 6,514 11/30/2017
2.0.6 14,646 10/22/2017
2.0.5 398 10/19/2017
2.0.3 5,722 10/18/2017
2.0.2 2,350 9/29/2017
2.0.1 82,219 8/24/2017
2.0.0 2,637 8/16/2017
1.1.72 1,040 8/7/2017
1.1.71 3,485 7/10/2017
1.1.70 362 7/10/2017
1.1.68 552 7/7/2017
1.1.67 619 7/4/2017
1.1.66 786 6/23/2017
1.1.65 683 6/15/2017
1.1.63 514 6/15/2017
1.1.62 1,797 6/4/2017
1.1.61 3,749 5/31/2017
1.1.60 1,029 5/16/2017
1.1.59 15,134 5/11/2017
1.1.58 687 5/5/2017
1.1.57 524 4/29/2017
1.1.56 416 4/28/2017
1.1.55 501 4/26/2017
1.1.54 383 4/26/2017
1.1.53 901 4/12/2017
1.1.48 2,302 2/10/2017
1.1.47 396 2/10/2017
1.1.45 1,996 1/27/2017
1.1.44 378 1/27/2017
1.1.43 474 1/25/2017
1.1.41 417 1/25/2017
1.1.40 730 1/6/2017
1.1.39 727 12/26/2016
1.1.38 728 12/26/2016
1.1.37 661 12/12/2016
1.1.35 1,252 11/29/2016
1.1.34 548 11/24/2016
1.1.31 978 9/13/2016
1.1.30 418 9/13/2016
1.1.29 1,023 9/3/2016
1.1.28 1,287 8/10/2016
1.1.27 527 8/8/2016
1.1.26 421 8/8/2016
1.1.25 1,558 7/28/2016
1.1.24 454 7/28/2016
1.1.23 437 7/28/2016
1.1.22 466 7/28/2016
1.1.20 1,305 6/4/2016
1.1.19 509 5/29/2016
1.1.17 444 5/26/2016
1.1.15 2,413 5/23/2016
1.1.14 1,568 5/22/2016
1.1.13 487 5/19/2016
1.1.12 2,304 4/24/2016
1.1.10 611 4/8/2016
1.1.9 485 3/31/2016
1.1.8 440 3/31/2016
1.1.7 424 3/31/2016
1.1.5 974 3/16/2016
1.1.4 433 3/16/2016
1.1.2 494 3/14/2016
1.1.1 1,015 3/12/2016
1.1.0 508 3/11/2016
1.0.64-pre 420 3/12/2016
1.0.63-pre 413 3/12/2016
1.0.62-pre 468 3/12/2016
1.0.61-pre 520 3/12/2016
1.0.60-pre 422 3/11/2016
1.0.59-pre 483 3/11/2016
1.0.58-pre 444 3/11/2016
1.0.56-pre 2,651 1/9/2016
1.0.55-pre 1,298 1/7/2016
1.0.54-pre 859 12/14/2015
1.0.53-pre 508 12/10/2015
1.0.52-pre 721 12/10/2015
1.0.51-pre 497 12/10/2015
1.0.50-pre 508 12/9/2015
1.0.49-pre 1,684 10/5/2015
1.0.48-pre 534 10/3/2015
1.0.47-pre 568 9/2/2015
1.0.46-pre 451 9/2/2015
1.0.45-pre 485 9/1/2015
1.0.44-pre 470 9/1/2015
1.0.43-pre 457 9/1/2015
1.0.42-pre 468 8/18/2015
1.0.41-pre 467 8/7/2015
1.0.40-pre 444 7/19/2015
1.0.39-pre 447 7/10/2015
1.0.38-pre 467 6/26/2015
1.0.37-pre 450 6/26/2015
1.0.36-pre 436 6/26/2015
1.0.35-pre 450 6/26/2015
1.0.34-pre 452 6/24/2015
1.0.33-pre 545 6/17/2015
1.0.31-pre 466 6/16/2015
1.0.30-pre 438 6/16/2015
1.0.29-pre 438 6/16/2015
1.0.28-pre 444 6/16/2015
1.0.27-pre 455 6/16/2015
1.0.26-pre 485 6/15/2015
1.0.25-pre 461 6/14/2015
1.0.24-pre 467 6/11/2015
1.0.23-pre 466 6/8/2015
1.0.22-pre 449 6/8/2015
1.0.21-pre 448 6/8/2015
1.0.20-pre 459 6/8/2015
1.0.19-pre 451 6/8/2015
1.0.18-pre 448 6/8/2015
1.0.16-pre 443 6/5/2015
1.0.15-pre 459 6/5/2015
1.0.14-pre 478 6/4/2015
1.0.11-pre 436 6/3/2015
1.0.10-pre 457 6/3/2015
1.0.9-pre 430 6/3/2015
1.0.8-pre 445 6/3/2015
1.0.7-pre 506 6/3/2015
1.0.6-pre 436 6/3/2015
1.0.5-pre 438 6/3/2015
1.0.4-pre 445 6/3/2015
1.0.3-pre 439 6/3/2015
1.0.1-pre 447 6/3/2015
1.0.0 488 2/22/2016
1.0.0-pre 444 5/26/2015
0.0.194 83 9/24/2020
Show less