Skip to content

Commit 88e7b09

Browse files
committed
Fix default value of CloudBuildNumber and make other defaults explicit.
1 parent f4581e2 commit 88e7b09

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Cake.GitVersioning/GitVersioningCloudSettings.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,21 @@ public class GitVersioningCloudSettings
2929

3030
/// <summary>
3131
/// Gets or sets a value indicating whether to define ALL version variables as cloud build variables, with a "NBGV_" prefix.
32+
/// Default value: <see langword="false" />.
3233
/// </summary>
33-
public bool AllVariables { get; set; }
34+
public bool AllVariables { get; set; } = false;
3435

3536
/// <summary>
3637
/// Gets or sets a value indicating whether to define a few common version variables as cloud build variables, with a "Git" prefix.
38+
/// Default value: <see langword="false" />.
3739
/// </summary>
38-
public bool CommonVariables { get; set; }
40+
public bool CommonVariables { get; set; } = false;
3941

4042
/// <summary>
4143
/// Gets or sets a value indicating whether to set the cloud build number.
44+
/// Default value: <see langword="true" />.
4245
/// </summary>
43-
public bool CloudBuildNumber { get; set; }
46+
public bool CloudBuildNumber { get; set; } = true;
4447

4548
/// <summary>
4649
/// Gets additional cloud build variables to define.

0 commit comments

Comments
 (0)