-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
378 lines (290 loc) · 29.5 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,maximum-scale=2">
<link rel="stylesheet" type="text/css" media="screen" href="/GitInfo/assets/css/style.css?v=6db242c878084901d9ef587b4128907a981c8c32">
<!-- Begin Jekyll SEO tag v2.8.0 -->
<title>GitInfo | Git and SemVer Info from MSBuild, C# and VB</title>
<meta name="generator" content="Jekyll v3.9.5" />
<meta property="og:title" content="GitInfo" />
<meta property="og:locale" content="en_US" />
<meta name="description" content="Git and SemVer Info from MSBuild, C# and VB" />
<meta property="og:description" content="Git and SemVer Info from MSBuild, C# and VB" />
<meta property="og:site_name" content="GitInfo" />
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary" />
<meta property="twitter:title" content="GitInfo" />
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"WebSite","description":"Git and SemVer Info from MSBuild, C# and VB","headline":"GitInfo","name":"GitInfo","url":"/GitInfo/"}</script>
<!-- End Jekyll SEO tag -->
<!-- start custom head snippets, customize with your own _includes/head-custom.html file -->
<!-- Setup Google Analytics -->
<!-- You can set your favicon here -->
<!-- link rel="shortcut icon" type="image/x-icon" href="/GitInfo/favicon.ico" -->
<!-- end custom head snippets -->
</head>
<body>
<!-- HEADER -->
<div id="header_wrap" class="outer">
<header class="inner">
<a id="forkme_banner" href="https://github.com/devlooped/GitInfo">View on GitHub</a>
<h1 id="project_title">GitInfo</h1>
<h2 id="project_tagline">Git and SemVer Info from MSBuild, C# and VB</h2>
</header>
</div>
<!-- MAIN CONTENT -->
<div id="main_content_wrap" class="outer">
<section id="main_content" class="inner">
<h1 id="-gitinfo"><img src="https://raw.githubusercontent.com/devlooped/GitInfo/main/assets/images/git.png" alt="Icon" /> GitInfo</h1>
<p>Git Info from MSBuild, C# and VB</p>
<blockquote>
<p>A fresh and transparent approach to Git information retrieval from MSBuild and Code without
using any custom tasks or compiled code and tools, obscure settings, format strings, etc.</p>
</blockquote>
<p><a href="https://www.nuget.org/packages/GitInfo"><img src="https://img.shields.io/nuget/v/GitInfo.svg" alt="Latest version" /></a>
<a href="https://www.nuget.org/packages/GitInfo"><img src="https://img.shields.io/nuget/dt/GitInfo.svg" alt="Downloads" /></a>
<a href="https://opensource.org/licenses/mit-license.php"><img src="https://img.shields.io/:license-MIT-blue.svg" alt="License" /></a>
<a href="https://github.com/devlooped/GitInfo/actions/workflows/build.yml"><img src="https://github.com/devlooped/GitInfo/actions/workflows/build.yml/badge.svg" alt="Build" /></a></p>
<p>Install via <a href="https://www.nuget.org/packages/GitInfo">NuGet</a>:</p>
<pre><code class="language-pwsh">PM> Install-Package GitInfo
</code></pre>
<!-- include https://github.com/devlooped/.github/raw/main/sponsorlinkr.md -->
<p><em>This project uses <a href="https://github.com/devlooped#sponsorlink">SponsorLink</a> to attribute sponsor status (direct, indirect or implicit).</em>
<em>For IDE usage, sponsor status is required. IDE-only warnings will be issued after a grace period otherwise.</em></p>
<!-- https://github.com/devlooped/.github/raw/main/sponsorlinkr.md -->
<h2 id="usage">Usage</h2>
<!-- #content -->
<p>By default, if the containing project is a C#, F# or VB project, a compile-time generated
source file will contain all the git information and can be accessed from anywhere within
the assembly, as constants in a <code class="language-plaintext highlighter-rouge">ThisAssembly</code> (partial) class and its nested <code class="language-plaintext highlighter-rouge">Git</code> static class:</p>
<div class="language-csharp highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="n">Console</span><span class="p">.</span><span class="nf">WriteLine</span><span class="p">(</span><span class="n">ThisAssembly</span><span class="p">.</span><span class="n">Git</span><span class="p">.</span><span class="n">Commit</span><span class="p">);</span>
</code></pre></div></div>
<blockquote>
<p>NOTE: you may need to close and reopen the solution in order
for Visual Studio to refresh intellisense and show the
ThisAssembly type the first time after installing the package.</p>
</blockquote>
<p>By default, GitInfo will also set <code class="language-plaintext highlighter-rouge">$(Version)</code> and <code class="language-plaintext highlighter-rouge">$(PackageVersion)</code> which the .NET
SDK uses for deriving the AssemblyInfo, FileVersion and InformationalVersion values,
as well as for packing. This default version is formatted from the following populated
MSBuild properties: <code class="language-plaintext highlighter-rouge">$(GitSemVerMajor).$(GitSemVerMinor).$(GitSemVerPatch)$(GitSemVerDashLabel)+$(GitBranch).$(GitCommit)</code>.</p>
<p>So, straight after install and build/pack, you will get some versioning in place :).</p>
<p>Alternatively, you can opt-out of this default versioning by setting <code class="language-plaintext highlighter-rouge">GitVersion=false</code>
in your project file, if you want to just leverage the Git information and/or version
properties/constants yourself:</p>
<div class="language-xml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt"><PropertyGroup></span>
<span class="nt"><GitVersion></span>false<span class="nt"></GitVersion></span>
<span class="nt"></PropertyGroup></span>
</code></pre></div></div>
<p>This allows you to use the provided constants to build any versioning attributes you want,
with whatever information you want, without resorting to settings, format strings or anything,
just plain code:</p>
<p>C#:</p>
<div class="language-csharp highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">[</span><span class="n">assembly</span><span class="p">:</span> <span class="nf">AssemblyVersion</span><span class="p">(</span><span class="n">ThisAssembly</span><span class="p">.</span><span class="n">Git</span><span class="p">.</span><span class="n">BaseVersion</span><span class="p">.</span><span class="n">Major</span> <span class="p">+</span> <span class="s">"."</span> <span class="p">+</span> <span class="n">ThisAssembly</span><span class="p">.</span><span class="n">Git</span><span class="p">.</span><span class="n">BaseVersion</span><span class="p">.</span><span class="n">Minor</span> <span class="p">+</span> <span class="s">"."</span> <span class="p">+</span> <span class="n">ThisAssembly</span><span class="p">.</span><span class="n">Git</span><span class="p">.</span><span class="n">BaseVersion</span><span class="p">.</span><span class="n">Patch</span><span class="p">)]</span>
<span class="p">[</span><span class="n">assembly</span><span class="p">:</span> <span class="nf">AssemblyFileVersion</span><span class="p">(</span><span class="n">ThisAssembly</span><span class="p">.</span><span class="n">Git</span><span class="p">.</span><span class="n">SemVer</span><span class="p">.</span><span class="n">Major</span> <span class="p">+</span> <span class="s">"."</span> <span class="p">+</span> <span class="n">ThisAssembly</span><span class="p">.</span><span class="n">Git</span><span class="p">.</span><span class="n">SemVer</span><span class="p">.</span><span class="n">Minor</span> <span class="p">+</span> <span class="s">"."</span> <span class="p">+</span> <span class="n">ThisAssembly</span><span class="p">.</span><span class="n">Git</span><span class="p">.</span><span class="n">SemVer</span><span class="p">.</span><span class="n">Patch</span><span class="p">)]</span>
<span class="p">[</span><span class="n">assembly</span><span class="p">:</span> <span class="nf">AssemblyInformationalVersion</span><span class="p">(</span>
<span class="n">ThisAssembly</span><span class="p">.</span><span class="n">Git</span><span class="p">.</span><span class="n">SemVer</span><span class="p">.</span><span class="n">Major</span> <span class="p">+</span> <span class="s">"."</span> <span class="p">+</span>
<span class="n">ThisAssembly</span><span class="p">.</span><span class="n">Git</span><span class="p">.</span><span class="n">SemVer</span><span class="p">.</span><span class="n">Minor</span> <span class="p">+</span> <span class="s">"."</span> <span class="p">+</span>
<span class="n">ThisAssembly</span><span class="p">.</span><span class="n">Git</span><span class="p">.</span><span class="n">Commits</span> <span class="p">+</span> <span class="s">"-"</span> <span class="p">+</span>
<span class="n">ThisAssembly</span><span class="p">.</span><span class="n">Git</span><span class="p">.</span><span class="n">Branch</span> <span class="p">+</span> <span class="s">"+"</span> <span class="p">+</span>
<span class="n">ThisAssembly</span><span class="p">.</span><span class="n">Git</span><span class="p">.</span><span class="n">Commit</span><span class="p">)]</span>
</code></pre></div></div>
<p>F#:</p>
<div class="language-fsharp highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="k">module</span> <span class="nc">AssemblyInfo</span>
<span class="k">open</span> <span class="nn">System</span><span class="p">.</span><span class="nc">Reflection</span>
<span class="p">[<</span><span class="n">assembly</span><span class="p">:</span> <span class="nc">AssemblyVersion</span><span class="p">(</span><span class="nn">ThisAssembly</span><span class="p">.</span><span class="nn">Git</span><span class="p">.</span><span class="nn">BaseVersion</span><span class="p">.</span><span class="nc">Major</span> <span class="o">+</span> <span class="s2">"."</span> <span class="o">+</span> <span class="nn">ThisAssembly</span><span class="p">.</span><span class="nn">Git</span><span class="p">.</span><span class="nn">BaseVersion</span><span class="p">.</span><span class="nc">Minor</span> <span class="o">+</span> <span class="s2">"."</span> <span class="o">+</span> <span class="nn">ThisAssembly</span><span class="p">.</span><span class="nn">Git</span><span class="p">.</span><span class="nn">BaseVersion</span><span class="p">.</span><span class="nc">Patch</span><span class="o">)>]</span>
<span class="p">[<</span><span class="n">assembly</span><span class="p">:</span> <span class="nc">AssemblyFileVersion</span><span class="p">(</span><span class="nn">ThisAssembly</span><span class="p">.</span><span class="nn">Git</span><span class="p">.</span><span class="nn">SemVer</span><span class="p">.</span><span class="nc">Major</span> <span class="o">+</span> <span class="s2">"."</span> <span class="o">+</span> <span class="nn">ThisAssembly</span><span class="p">.</span><span class="nn">Git</span><span class="p">.</span><span class="nn">SemVer</span><span class="p">.</span><span class="nc">Minor</span> <span class="o">+</span> <span class="s2">"."</span> <span class="o">+</span> <span class="nn">ThisAssembly</span><span class="p">.</span><span class="nn">Git</span><span class="p">.</span><span class="nn">SemVer</span><span class="p">.</span><span class="nc">Patch</span><span class="o">)>]</span>
<span class="p">[<</span><span class="n">assembly</span><span class="p">:</span> <span class="nc">AssemblyInformationalVersion</span><span class="p">(</span>
<span class="nn">ThisAssembly</span><span class="p">.</span><span class="nn">Git</span><span class="p">.</span><span class="nn">SemVer</span><span class="p">.</span><span class="nc">Major</span> <span class="o">+</span> <span class="s2">"."</span> <span class="o">+</span>
<span class="nn">ThisAssembly</span><span class="p">.</span><span class="nn">Git</span><span class="p">.</span><span class="nn">SemVer</span><span class="p">.</span><span class="nc">Minor</span> <span class="o">+</span> <span class="s2">"."</span> <span class="o">+</span>
<span class="nn">ThisAssembly</span><span class="p">.</span><span class="nn">Git</span><span class="p">.</span><span class="nc">Commits</span> <span class="o">+</span> <span class="s2">"-"</span> <span class="o">+</span>
<span class="nn">ThisAssembly</span><span class="p">.</span><span class="nn">Git</span><span class="p">.</span><span class="nc">Branch</span> <span class="o">+</span> <span class="s2">"+"</span> <span class="o">+</span>
<span class="nn">ThisAssembly</span><span class="p">.</span><span class="nn">Git</span><span class="p">.</span><span class="nc">Commit</span><span class="o">)>]</span>
<span class="k">do</span> <span class="bp">()</span>
</code></pre></div></div>
<p>VB:</p>
<pre><code class="language-vbnet"><Assembly: AssemblyVersion(ThisAssembly.Git.BaseVersion.Major + "." + ThisAssembly.Git.BaseVersion.Minor + "." + ThisAssembly.Git.BaseVersion.Patch)>
<Assembly: AssemblyFileVersion(ThisAssembly.Git.SemVer.Major + "." + ThisAssembly.Git.SemVer.Minor + "." + ThisAssembly.Git.SemVer.Patch)>
<Assembly: AssemblyInformationalVersion(
ThisAssembly.Git.SemVer.Major + "." +
ThisAssembly.Git.SemVer.Minor + "." +
ThisAssembly.Git.Commits + "-" +
ThisAssembly.Git.Branch + "+" +
ThisAssembly.Git.Commit)>
</code></pre>
<blockquote>
<p>NOTE: when generating your own assembly version attributes, you will need to turn off
the corresponding assembly version attribute generation from the .NET SDK, by setting
the relevant properties to false: <code class="language-plaintext highlighter-rouge">GenerateAssemblyVersionAttribute</code>,
<code class="language-plaintext highlighter-rouge">GenerateAssemblyFileVersionAttribute</code> and <code class="language-plaintext highlighter-rouge">GenerateAssemblyInformationalVersionAttribute</code>.</p>
</blockquote>
<p>You can also just build your own versioning logic in a target that depends on GitInfo using plain MSBuild:</p>
<div class="language-xml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt"><PropertyGroup></span>
<span class="nt"><GitVersion></span>false<span class="nt"></GitVersion></span> <span class="c"><!-- we'll do our own versioning --></span>
<span class="nt"></PropertyGroup></span>
<span class="nt"><ItemGroup></span>
<span class="nt"><PackageReference</span> <span class="na">Include=</span><span class="s">"GitInfo"</span> <span class="na">PrivateAssets=</span><span class="s">"all"</span> <span class="nt">/></span>
<span class="nt"></ItemGroup></span>
<span class="nt"><Target</span> <span class="na">Name=</span><span class="s">"PopulateInfo"</span> <span class="na">DependsOnTargets=</span><span class="s">"GitVersion"</span> <span class="na">BeforeTargets=</span><span class="s">"GetAssemblyVersion;GenerateNuspec;GetPackageContents"</span><span class="nt">></span>
<span class="nt"><PropertyGroup></span>
<span class="nt"><Version></span>$(GitSemVerMajor).$(GitSemVerMinor).$(GitSemVerPatch)$(GitSemVerDashLabel)+$(GitBranch).$(GitCommit)<span class="nt"></Version></span>
<span class="nt"><PackageVersion></span>$(Version)<span class="nt"></PackageVersion></span>
<span class="nt"><RepositoryBranch></span>$(GitBranch)<span class="nt"></RepositoryBranch></span>
<span class="nt"><RepositoryCommit></span>$(GitCommit)<span class="nt"></RepositoryCommit></span>
<span class="nt"><SourceRevisionId></span>$(GitBranch) $(GitCommit)<span class="nt"></SourceRevisionId></span>
<span class="nt"></PropertyGroup></span>
<span class="nt"></Target></span>
</code></pre></div></div>
<blockquote>
<p>NOTE: because the provided properties are populated via targets that need to run
before they are available, you cannot use the GitInfo-provided properties in a
PropertyGroup at the project level. You can only use them from within a target that
in turn depends on the relevant target from GitInfo (typically, <code class="language-plaintext highlighter-rouge">GitVersion</code> as
shown above, if you consume the SemVer properties).</p>
</blockquote>
<p>Because this information is readily available whenever you build the project, you
never depend on CI build scripts that generate versions for you, and you can
always compile locally exactly the same version of an assembly that was built by
a CI server.</p>
<p>You can read more about this project at the
<a href="http://www.cazzulino.com/git-info-from-msbuild-and-code.html">GitInfo announcement blog post</a>.</p>
<h2 id="details">Details</h2>
<p>Exposes the following information for use directly from any MSBuild
target that depends on the GitInfo target:</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code> $(GitRepositoryUrl)
$(GitBranch)
$(GitCommit)
$(GitCommitDate)
$(GitCommits)
$(GitTag)
$(GitBaseTag)
$(GitBaseVersionMajor)
$(GitBaseVersionMinor)
$(GitBaseVersionPatch)
$(GitSemVerMajor)
$(GitSemVerMinor)
$(GitSemVerPatch)
$(GitSemVerLabel)
$(GitSemVerDashLabel)
$(GitSemVerSource)
$(GitIsDirty)
</code></pre></div></div>
<p>For C#, F# and VB, constants are generated too so that the same information can be
accessed from code:</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code> ThisAssembly.Git.RepositoryUrl
ThisAssembly.Git.Branch
ThisAssembly.Git.Commit
ThisAssembly.Git.Commits
ThisAssembly.Git.Tag
ThisAssembly.Git.BaseTag
ThisAssembly.Git.BaseVersion.Major
ThisAssembly.Git.BaseVersion.Minor
ThisAssembly.Git.BaseVersion.Patch
ThisAssembly.Git.SemVer.Major
ThisAssembly.Git.SemVer.Minor
ThisAssembly.Git.SemVer.Patch
ThisAssembly.Git.SemVer.Label
ThisAssembly.Git.SemVer.DashLabel
ThisAssembly.Git.SemVer.Source
ThisAssembly.Git.IsDirty
</code></pre></div></div>
<p>Available <a href="https://learn.microsoft.com/en-us/visualstudio/msbuild/msbuild-properties">MSBuild properties</a>
to customize the behavior:</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code> $(GitVersion): set to 'false' to avoid setting Version and PackageVersion to a default version with format:
$(GitSemVerMajor).$(GitSemVerMinor).$(GitSemVerPatch)$(GitSemVerDashLabel)+$(GitBranch).$(GitCommit)
$(GitThisAssembly): set to 'false' to prevent assembly metadata and constants generation.
$(GitThisAssemblyMetadata): set to 'false' to prevent assembly metadata generation only. Defaults to 'false'.
If 'true', it will also provide assembly metadata attributes for each of the populated values.
$(ThisAssemblyNamespace): allows overriding the namespace for the ThisAssembly class. Defaults to the global namespace.
$(GitRemote): name of remote to get repository url for. Defaults to 'origin'.
$(GitBranchCI): determines whether the branch name should be populated from default environment variables used by the CI system. Default to 'true'.
$(GitDefaultBranch): determines the base branch used to calculate commits on top of current branch. Defaults to 'main'.
$(GitVersionFile): determines the name of a file in the Git repository root used to provide the base version info. Defaults to 'GitInfo.txt'.
$(GitCommitsRelativeTo): optionally specifies an alternative directory for counting commits on top of the base version. Defaults to the $(GitVersionFile) directory.
$(GitCommitsIgnoreMerges): set to 'true' to ignore merge commits when calculating the number of commits. Defaults to 'false'.
$(GitInfoReportImportance): allows rendering all the retrieved git information with the specified message importance ('high', 'normal' or 'low'). Defaults to 'low'.
$(GitIgnoreBranchVersion) and $(GitIgnoreTagVersion): determines whether the branch and tags (if any) will be used to find a base version. Defaults to empty value (no ignoring).
$(GitNameRevOptions): options passed to git name-rev when finding a branch name for a commit (Detached head). The default is '--refs=refs/heads/* --no-undefined --always'
meaning branch names only, falling back to commit hash. For the legacy behavior where $(GitBranch) for detached head can also be a tag name, use '--refs=refs/*'.
Refs can be included and excluded, see git name-rev docs.
$(GitSkipCache): whether to cache the Git information determined in a previous build in a GitInfo.cache for performance reasons. Defaults to empty value (no ignoring).
$(GitCachePath): where to cache the determined Git information. Gives the chance to use a shared location for different projects. This can improve the overall build time.
Has to end with a path seperator Defaults to empty value ('$(IntermediateOutputPath)').
$(GitTagRegex): regular expression used with git describe to filter the tags to consider for base version lookup. Defaults to * (all).
$(GitBaseVersionRegex): regular expression used to match and validate valid base versions in branch, tag or file sources. By default, matches any string that *ends* in a valid SemVer2 string.
Defaults to 'v?(?<MAJOR>\d+)\.(?<MINOR>\d+)\.(?<PATCH>\d+)(?:\-(?<LABEL>[\dA-Za-z\-\.]+))?$|^(?<LABEL>[\dA-Za-z\-\.]+)\-v?(?<MAJOR>\d+)\.(?<MINOR>\d+)\.(?<PATCH>\d+)$'
$(GitCommitDateFormat): value passed as the format option when trying to retrieve the git commit date. Defaults to %%cI (windows) or %cI (non windows).
</code></pre></div></div>
<h2 id="goals">Goals</h2>
<ul>
<li>No compiled code or tools -> 100% transparency</li>
<li>Trivially added/installed via <a href="https://www.nuget.org/packages/GitInfo">a NuGet package</a></li>
<li>No format strings or settings to learn</li>
<li>Simple well-structured <a href="https://github.com/kzu/GitInfo/blob/main/src/GitInfo/build/GitInfo.targets">.targets file</a>
with plain MSBuild and no custom tasks</li>
<li><a href="https://github.com/kzu/GitInfo/blob/main/src/GitInfo/build/GitInfo.AssemblyMetadata.targets">Optional embedding</a>
of Git info in assembly metadata</li>
<li>Optional use of Git info to build arbitrary assembly/file version information, both
<a href="https://github.com/kzu/GitInfoDemo/blob/main/GitInfoDemo/Properties/AssemblyInfo.cs#L10">in C#</a> as well
<a href="https://github.com/kzu/GitInfoDemo/blob/main/GitInfoDemoVB/My%20Project/AssemblyInfo.vb#L8">as VB</a>.</li>
<li>Trivially modified/improved generated code by just adjusting a
<a href="https://github.com/kzu/GitInfo/blob/main/src/GitInfo/build/GitInfo.cs.pp">C#</a> or
<a href="https://github.com/kzu/GitInfo/blob/main/src/GitInfo/build/GitInfo.fs.pp">F#</a> or
<a href="https://github.com/kzu/GitInfo/blob/main/src/GitInfo/build/GitInfo.vb.pp">VB</a> template
included in the <a href="https://www.nuget.org/packages/GitInfo">NuGet package</a></li>
<li>100% incremental build-friendly and high-performing (all proper Inputs/Outputs in place, smart caching of Git info, etc.)</li>
</ul>
<!-- #content -->
<!-- include https://github.com/devlooped/sponsors/raw/main/footer.md -->
<h1 id="sponsors">Sponsors</h1>
<!-- sponsors.md -->
<p><a href="https://github.com/clarius"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/clarius.png" alt="Clarius Org" title="Clarius Org" /></a>
<a href="https://github.com/MFB-Technologies-Inc"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/MFB-Technologies-Inc.png" alt="MFB Technologies, Inc." title="MFB Technologies, Inc." /></a>
<a href="https://github.com/torutek-gh"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/torutek-gh.png" alt="Torutek" title="Torutek" /></a>
<a href="https://github.com/drivenet"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/drivenet.png" alt="DRIVE.NET, Inc." title="DRIVE.NET, Inc." /></a>
<a href="https://github.com/Keflon"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/Keflon.png" alt="Keith Pickford" title="Keith Pickford" /></a>
<a href="https://github.com/tbolon"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/tbolon.png" alt="Thomas Bolon" title="Thomas Bolon" /></a>
<a href="https://github.com/kfrancis"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/kfrancis.png" alt="Kori Francis" title="Kori Francis" /></a>
<a href="https://github.com/twenzel"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/twenzel.png" alt="Toni Wenzel" title="Toni Wenzel" /></a>
<a href="https://github.com/unoplatform"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/unoplatform.png" alt="Uno Platform" title="Uno Platform" /></a>
<a href="https://github.com/dansiegel"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/dansiegel.png" alt="Dan Siegel" title="Dan Siegel" /></a>
<a href="https://github.com/rbnswartz"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/rbnswartz.png" alt="Reuben Swartz" title="Reuben Swartz" /></a>
<a href="https://github.com/jfoshee"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/jfoshee.png" alt="Jacob Foshee" title="Jacob Foshee" /></a>
<a href="https://github.com/eajhnsn1"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/Mrxx99.png" alt="" title="")](https://github.com/Mrxx99)
[![Eric Johnson](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/eajhnsn1.png "Eric Johnson" /></a>
<a href="https://github.com/IxTechnologies"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/IxTechnologies.png" alt="Ix Technologies B.V." title="Ix Technologies B.V." /></a>
<a href="https://github.com/davidjenni"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/davidjenni.png" alt="David JENNI" title="David JENNI" /></a>
<a href="https://github.com/Jonathan-Hickey"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/Jonathan-Hickey.png" alt="Jonathan " title="Jonathan " /></a>
<a href="https://github.com/akunzai"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/akunzai.png" alt="Charley Wu" title="Charley Wu" /></a>
<a href="https://github.com/jakobt"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/jakobt.png" alt="Jakob Tikjøb Andersen" title="Jakob Tikjøb Andersen" /></a>
<a href="https://github.com/tinohager"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/tinohager.png" alt="Tino Hager" title="Tino Hager" /></a>
<a href="https://github.com/KenBonny"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/KenBonny.png" alt="Ken Bonny" title="Ken Bonny" /></a>
<a href="https://github.com/SimonCropp"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/SimonCropp.png" alt="Simon Cropp" title="Simon Cropp" /></a>
<a href="https://github.com/agileworks-eu"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/agileworks-eu.png" alt="agileworks-eu" title="agileworks-eu" /></a>
<a href="https://github.com/sorahex"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/sorahex.png" alt="sorahex" title="sorahex" /></a>
<a href="https://github.com/arsdragonfly"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/arsdragonfly.png" alt="Zheyu Shen" title="Zheyu Shen" /></a>
<a href="https://github.com/vezel-dev"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/vezel-dev.png" alt="Vezel" title="Vezel" /></a>
<a href="https://github.com/ChilliCream"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/ChilliCream.png" alt="ChilliCream" title="ChilliCream" /></a>
<a href="https://github.com/4OTC"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/4OTC.png" alt="4OTC" title="4OTC" /></a>
<a href="https://github.com/v-limo"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/v-limo.png" alt="Vincent Limo" title="Vincent Limo" /></a>
<a href="https://github.com/jordansjones"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/jordansjones.png" alt="Jordan S. Jones" title="Jordan S. Jones" /></a>
<a href="https://github.com/DominicSchell"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/DominicSchell.png" alt="domischell" title="domischell" /></a>
<a href="https://github.com/jkingry"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/jkingry.png" alt="Joseph Kingry" title="Joseph Kingry" /></a></p>
<!-- sponsors.md -->
<p><a href="https://github.com/sponsors/devlooped"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/sponsor.png" alt="Sponsor this project" title="Sponsor this project" /></a>
</p>
<p><a href="https://github.com/sponsors">Learn more about GitHub Sponsors</a></p>
<!-- https://github.com/devlooped/sponsors/raw/main/footer.md -->
</section>
</div>
<!-- FOOTER -->
<div id="footer_wrap" class="outer">
<footer class="inner">
<p class="copyright">GitInfo maintained by <a href="https://github.com/devlooped">devlooped</a></p>
<p>Published with <a href="https://pages.github.com">GitHub Pages</a></p>
</footer>
</div>
</body>
</html>