Skip to content

Commit 5183999

Browse files
CopilotAArnott
andcommitted
Add documentation comment for VersionHeightOffset property
Co-authored-by: AArnott <[email protected]>
1 parent e3fefcc commit 5183999

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/NerdBank.GitVersioning/VersionOracle.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,12 @@ public string PrereleaseVersion
306306
/// when calculating the integer to use as the <see cref="BuildNumber"/>
307307
/// or elsewhere that the {height} macro is used.
308308
/// </summary>
309+
/// <remarks>
310+
/// This property returns the effective version height offset, which takes into account
311+
/// the <see cref="VersionOptions.VersionHeightOffsetAppliesTo"/> property. If that property
312+
/// is set and the version has changed such that the version height would be reset, this
313+
/// will return 0 instead of the configured offset.
314+
/// </remarks>
309315
public int VersionHeightOffset => this.VersionOptions?.EffectiveVersionHeightOffset ?? 0;
310316

311317
/// <summary>

0 commit comments

Comments
 (0)