diff --git a/build/Utilities/BuildVersion.cs b/build/Utilities/BuildVersion.cs index 9e79732193..0d30d88d73 100644 --- a/build/Utilities/BuildVersion.cs +++ b/build/Utilities/BuildVersion.cs @@ -44,7 +44,8 @@ public static BuildVersion Calculate(Context context) var version = assertedversions.MajorMinorPatch; var semVersion = assertedversions.LegacySemVerPadded; - + var fullSemVer = assertedversions.FullSemVer; + if (string.IsNullOrWhiteSpace(version)) { throw new CakeException("Could not calculate version of build.");