From 91d7bea812896fff192fba4be3c8db0dcbb26eed Mon Sep 17 00:00:00 2001 From: Sandro Figo Date: Sun, 27 Aug 2023 09:36:38 +0200 Subject: [PATCH] Fix LatestVersion property Fix LatestVersion property --- source/Nuke.Common/ChangeLog/ChangeLog.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Nuke.Common/ChangeLog/ChangeLog.cs b/source/Nuke.Common/ChangeLog/ChangeLog.cs index 706f3cb5d..49ef83475 100644 --- a/source/Nuke.Common/ChangeLog/ChangeLog.cs +++ b/source/Nuke.Common/ChangeLog/ChangeLog.cs @@ -31,7 +31,7 @@ public class ChangeLog /// /// The latest release notes section. Returns null if the changelog does not contain a release section. /// - [CanBeNull] public NuGetVersion LatestVersion => ReleaseNotes.FirstOrDefault()?.Version; + [CanBeNull] public NuGetVersion LatestVersion => ReleaseNotes.LastOrDefault()?.Version; /// /// Initializes a new instance of the class.