Skip to content

Commit

Permalink
Fix GitHub release link generation for prereleases
Browse files Browse the repository at this point in the history
  • Loading branch information
commonsensesoftware committed Nov 14, 2022
1 parent f1b8184 commit 5515464
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/nuget.targets
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@

<PropertyGroup>
<ReleaseNotesFile>$(MSBuildProjectDirectory)\ReleaseNotes.txt</ReleaseNotesFile>
<GitHubReleaseTag Condition=" '$(GitHubReleaseTag)' == '' ">$(PackageVersion.Substring(0,$(PackageVersion.LastIndexOf('.')))).0</GitHubReleaseTag>
<GitHubReleaseTag Condition=" '$(GitHubReleaseTag)' == '' AND '$(PackageVersion.IndexOf(`-`))' == '-1' ">$(PackageVersion.Substring(0,$(PackageVersion.LastIndexOf('.')))).0</GitHubReleaseTag>
<GitHubReleaseTag Condition=" '$(GitHubReleaseTag)' == '' ">$(PackageVersion)</GitHubReleaseTag>
<PackageReleaseNotes>https://github.com/dotnet/aspnet-api-versioning/releases/tag/v$(GitHubReleaseTag)</PackageReleaseNotes>
</PropertyGroup>

Expand Down

0 comments on commit 5515464

Please sign in to comment.