Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Rossignoli committed Dec 16, 2023
1 parent c90e5b1 commit 8bc8f3f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,11 @@ public virtual async Task DisplayBannerAsync()
int index = informationalVersion.LastIndexOfAny(PlusSign);
if (index != -1)
{
#if NETCOREAPP
stringBuilder.Append(CultureInfo.InvariantCulture, $"Version: {informationalVersion[..(index + 10)]}");
#else
stringBuilder.Append(CultureInfo.InvariantCulture, $"Version: {informationalVersion.Substring(0, index + 10)}");
#endif
}
else
{
Expand Down

0 comments on commit 8bc8f3f

Please sign in to comment.