Skip to content

Commit

Permalink
Merge pull request #13156 from AvaloniaUI/fix-build-baseline-version-…
Browse files Browse the repository at this point in the history
…parse

fix parsing the baseline version for api diff.
  • Loading branch information
Dan Walmsley committed Oct 6, 2023
1 parent 2bfb008 commit 031d7d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nukebuild/BuildParameters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public BuildParameters(Build b)
// VERSION
Version = b.ForceNugetVersion ?? GetVersion();

ApiValidationBaseline = b.ApiValidationBaseline ?? new Version(new Version(Version).Major, 0).ToString();
ApiValidationBaseline = b.ApiValidationBaseline ?? new Version(new Version(Version.Split('-', StringSplitOptions.None).First()).Major, 0).ToString();
UpdateApiValidationSuppression = b.UpdateApiValidationSuppression ?? IsLocalBuild;

if (IsRunningOnAzure)
Expand Down

0 comments on commit 031d7d2

Please sign in to comment.