GitInfo 2.0.20

Git and SemVer info for MSBuild/C#/VB

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
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.

Version History

Version Downloads Last updated
2.0.20 15,406 11/13/2018
2.0.19 1,872 11/2/2018
2.0.18 19,147 9/26/2018
2.0.17 5,647 9/10/2018
2.0.16 142 9/10/2018
2.0.15 5,130 8/14/2018
2.0.14 813 8/3/2018
2.0.11 79,184 6/1/2018
2.0.10 15,668 2/21/2018
2.0.9 386 2/20/2018
2.0.8 10,101 11/30/2017
2.0.7 4,761 11/30/2017
2.0.6 11,266 10/22/2017
2.0.5 218 10/19/2017
2.0.3 1,616 10/18/2017
2.0.2 1,673 9/29/2017
2.0.1 56,809 8/24/2017
2.0.0 1,739 8/16/2017
1.1.72 736 8/7/2017
1.1.71 1,722 7/10/2017
1.1.70 182 7/10/2017
1.1.68 342 7/7/2017
1.1.67 359 7/4/2017
1.1.66 588 6/23/2017
1.1.65 504 6/15/2017
1.1.63 279 6/15/2017
1.1.62 1,578 6/4/2017
1.1.61 3,535 5/31/2017
1.1.60 773 5/16/2017
1.1.59 10,068 5/11/2017
1.1.58 479 5/5/2017
1.1.57 319 4/29/2017
1.1.56 226 4/28/2017
1.1.55 291 4/26/2017
1.1.54 192 4/26/2017
1.1.53 528 4/12/2017
1.1.48 1,952 2/10/2017
1.1.47 199 2/10/2017
1.1.45 1,795 1/27/2017
1.1.44 193 1/27/2017
1.1.43 271 1/25/2017
1.1.41 215 1/25/2017
1.1.40 515 1/6/2017
1.1.39 522 12/26/2016
1.1.38 249 12/26/2016
1.1.37 442 12/12/2016
1.1.35 972 11/29/2016
1.1.34 292 11/24/2016
1.1.31 755 9/13/2016
1.1.30 215 9/13/2016
1.1.29 802 9/3/2016
1.1.28 1,040 8/10/2016
1.1.27 320 8/8/2016
1.1.26 218 8/8/2016
1.1.25 1,041 7/28/2016
1.1.24 250 7/28/2016
1.1.23 239 7/28/2016
1.1.22 244 7/28/2016
1.1.20 1,074 6/4/2016
1.1.19 295 5/29/2016
1.1.17 238 5/26/2016
1.1.15 2,189 5/23/2016
1.1.14 1,325 5/22/2016
1.1.13 276 5/19/2016
1.1.12 2,084 4/24/2016
1.1.10 394 4/8/2016
1.1.9 276 3/31/2016
1.1.8 226 3/31/2016
1.1.7 225 3/31/2016
1.1.5 759 3/16/2016
1.1.4 231 3/16/2016
1.1.2 284 3/14/2016
1.1.1 792 3/12/2016
1.1.0 276 3/11/2016
1.0.64-pre 217 3/12/2016
1.0.63-pre 215 3/12/2016
1.0.62-pre 248 3/12/2016
1.0.61-pre 290 3/12/2016
1.0.60-pre 222 3/11/2016
1.0.59-pre 252 3/11/2016
1.0.58-pre 252 3/11/2016
1.0.56-pre 2,300 1/9/2016
1.0.55-pre 1,082 1/7/2016
1.0.54-pre 587 12/14/2015
1.0.53-pre 263 12/10/2015
1.0.52-pre 491 12/10/2015
1.0.51-pre 273 12/10/2015
1.0.50-pre 301 12/9/2015
1.0.49-pre 1,360 10/5/2015
1.0.48-pre 310 10/3/2015
1.0.47-pre 370 9/2/2015
1.0.46-pre 242 9/2/2015
1.0.45-pre 278 9/1/2015
1.0.44-pre 257 9/1/2015
1.0.43-pre 246 9/1/2015
1.0.42-pre 254 8/18/2015
1.0.41-pre 255 8/7/2015
1.0.40-pre 238 7/19/2015
1.0.39-pre 251 7/10/2015
1.0.38-pre 268 6/26/2015
1.0.37-pre 240 6/26/2015
1.0.36-pre 240 6/26/2015
1.0.35-pre 249 6/26/2015
1.0.34-pre 246 6/24/2015
1.0.33-pre 337 6/17/2015
1.0.31-pre 245 6/16/2015
1.0.30-pre 240 6/16/2015
1.0.29-pre 244 6/16/2015
1.0.28-pre 240 6/16/2015
1.0.27-pre 243 6/16/2015
1.0.26-pre 273 6/15/2015
1.0.25-pre 243 6/14/2015
1.0.24-pre 255 6/11/2015
1.0.23-pre 258 6/8/2015
1.0.22-pre 242 6/8/2015
1.0.21-pre 245 6/8/2015
1.0.20-pre 246 6/8/2015
1.0.19-pre 241 6/8/2015
1.0.18-pre 235 6/8/2015
1.0.16-pre 238 6/5/2015
1.0.15-pre 256 6/5/2015
1.0.14-pre 267 6/4/2015
1.0.11-pre 240 6/3/2015
1.0.10-pre 237 6/3/2015
1.0.9-pre 235 6/3/2015
1.0.8-pre 245 6/3/2015
1.0.7-pre 308 6/3/2015
1.0.6-pre 241 6/3/2015
1.0.5-pre 247 6/3/2015
1.0.4-pre 249 6/3/2015
1.0.3-pre 239 6/3/2015
1.0.1-pre 241 6/3/2015
1.0.0 274 2/22/2016
1.0.0-pre 244 5/26/2015