Skip to content

Commit 15d6322

Browse files
committed
Release notes improvements
1 parent 5722a07 commit 15d6322

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

NuGetReleaseTool/NuGetReleaseTool/GenerateReleaseNotesCommand/ReleaseNotesGenerator.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,14 +211,14 @@ private static string GenerateMarkdown(string release, Dictionary<IssueType, Lis
211211
builder.AppendLine();
212212
builder.AppendLine("| NuGet version | Available in Visual Studio version | Available in .NET SDK(s) |");
213213
builder.AppendLine("|:---|:---|:---|");
214-
builder.AppendLine(string.Format("| [**{0}**](https://nuget.org/downloads) |" +
215-
" [Visual Studio {1} version {2}](https://visualstudio.microsoft.com/downloads/) " +
214+
builder.AppendLine(string.Format("| [**{0}.0**](https://nuget.org/downloads) |" +
215+
" [Visual Studio {1} version {2}.0](https://visualstudio.microsoft.com/downloads/) " +
216216
"| [{3}](https://dotnet.microsoft.com/download/dotnet/{4})<sup>1</sup> |",
217217
release, VSYear, VSVersion, fullSDKVersion, SDKMajorMinorVersion));
218218
builder.AppendLine();
219219
builder.AppendLine(string.Format("<sup>1</sup> Installed with Visual Studio {0} with any .NET workload", VSYear));
220220
builder.AppendLine();
221-
builder.AppendLine(string.Format("## Summary: What's New in {0}", release));
221+
builder.AppendLine(string.Format("## Summary: What's New in {0}.0", release));
222222
builder.AppendLine();
223223
OutputSection(labelSet, builder, IssueType.Feature, includeHeader: false);
224224
builder.AppendLine(string.Format("### Breaking changes", release));
@@ -266,8 +266,8 @@ private async Task<string> GenerateReleaseDeltasLink(Version currentVersion)
266266

267267
Version previousVersion = Helpers.EstimatePreviousMajorMinorVersion(currentVersion, allTags);
268268
Console.WriteLine($"Generating a release deltas link for {currentVersion}, with the calculated previous version {previousVersion}");
269-
var startVersion = Helpers.GetLatestTagForMajorMinor(currentVersion, allTags);
270-
var endVersion = Helpers.GetLatestTagForMajorMinor(previousVersion, allTags);
269+
var startVersion = Helpers.GetLatestTagForMajorMinor(previousVersion, allTags);
270+
var endVersion = Helpers.GetLatestTagForMajorMinor(currentVersion, allTags);
271271

272272
return $"https://github.com/NuGet/NuGet.Client/compare/{startVersion}...{endVersion}";
273273
}

0 commit comments

Comments
 (0)