Skip to content

Commit 3b3db33

Browse files
authored
Merge pull request #669 from dotnet/fix630
Suppress `cloudBuild.buildNumber: null` being written for `nbgv prepare-release`
2 parents 5496648 + e929e74 commit 3b3db33

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/NerdBank.GitVersioning/VersionOptions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -934,6 +934,7 @@ public bool? SetVersionVariables
934934
/// <summary>
935935
/// Gets or sets options around how and whether to set the build number preset by the cloud build with one enriched with version information.
936936
/// </summary>
937+
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
937938
public CloudBuildNumberOptions? BuildNumber
938939
{
939940
get => this.buildNumber;

0 commit comments

Comments
 (0)