diff --git a/tools/build/BuildDefinition.cs b/tools/build/BuildDefinition.cs index 84c86e779..8c1f28e67 100644 --- a/tools/build/BuildDefinition.cs +++ b/tools/build/BuildDefinition.cs @@ -65,6 +65,11 @@ public static GitVersion ResolveVersion(Options options, PreviousReleases releas jsonOptions.Converters.Add(new AutoNumberToStringConverter()); version = JsonSerializer.Deserialize(versionJson, jsonOptions); + + // Workaround to prevent issues with some consumers of the NuGet API that build + // links manually instead of following the links that come in the response. + // https://github.com/aaubry/YamlDotNet/issues/703 + version.PreReleaseLabel = version.PreReleaseLabel?.ToLowerInvariant(); } if (version.CommitsSinceVersionSource > 0 && version.Equals(releases.Latest))