Skip to content

Commit ac108d0

Browse files
committed
Set Minor as default for Precision
1 parent 9f83926 commit ac108d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/NerdBank.GitVersioning/VersionOptions.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using System.Reflection;
77
using Newtonsoft.Json;
88
using Newtonsoft.Json.Converters;
9+
using System.ComponentModel;
910

1011
/// <summary>
1112
/// Describes the various versions and options required for the build.
@@ -178,7 +179,8 @@ public AssemblyVersionOptions(Version version, VersionPrecision precision = Vers
178179
/// Gets or sets the additional version precision to add toward matching the AssemblyFileVersion.
179180
/// </summary>
180181
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
181-
public VersionPrecision Precision { get; set; }
182+
[DefaultValue(VersionPrecision.Minor)]
183+
public VersionPrecision Precision { get; set; } = VersionPrecision.Minor;
182184

183185
/// <inheritdoc />
184186
public override bool Equals(object obj) => this.Equals(obj as AssemblyVersionOptions);

0 commit comments

Comments
 (0)