Skip to content

Commit 7d36f40

Browse files
Pin release notes link to major and minor version
1 parent 3857a33 commit 7d36f40

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build/nuget.targets

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030

3131
<PropertyGroup>
3232
<ReleaseNotesFile>$(MSBuildProjectDirectory)\ReleaseNotes.txt</ReleaseNotesFile>
33-
<PackageReleaseNotes>https://github.com/dotnet/aspnet-api-versioning/releases/tag/v$(PackageVersion)</PackageReleaseNotes>
33+
<GitHubReleaseTag Condition=" '$(GitHubReleaseTag)' == '' ">$(PackageVersion.Substring(0,$(PackageVersion.LastIndexOf('.')))).0</GitHubReleaseTag>
34+
<PackageReleaseNotes>https://github.com/dotnet/aspnet-api-versioning/releases/tag/v$(GitHubReleaseTag)</PackageReleaseNotes>
3435
</PropertyGroup>
3536

3637
<!-- if there is banner text, merge as one big string

0 commit comments

Comments
 (0)