Skip to content

Commit

Permalink
Show current version (using nbgv) in help page (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
coenm authored Sep 5, 2024
1 parent 628e2fb commit 4e04403
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/RepoM.App/ViewModels/HelpViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ public HelpViewModel(ITranslationService translationService)

private static string GetHeader()
{
AssemblyName? appName = Assembly.GetEntryAssembly()?.GetName();
return appName?.Name + ' ' + appName?.Version?.ToString(2).Trim();
return ((Assembly.GetEntryAssembly()?.GetName().Name ?? ThisAssembly.AssemblyName) + " " + ThisAssembly.AssemblyInformationalVersion).Trim();
}

private static string GetHelp(ITranslationService translationService)
Expand Down

0 comments on commit 4e04403

Please sign in to comment.