Skip to content

Commit

Permalink
show installer/portable version in about box
Browse files Browse the repository at this point in the history
  • Loading branch information
bezo97 committed Nov 14, 2021
1 parent 231bfd3 commit cf37f21
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion WpfDisplay/Views/AboutDialogWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ public AboutDialogWindow()
{
InitializeComponent();
}
public static string AppVersion => "v" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();

#if INSTALLER
public static string AppVersion => "v" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString() + " (installed)";
#endif
#if PORTABLE
public static string AppVersion => "v" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString() + " (portable)";
#endif

private ICommand _okCommand;
public ICommand OkCommand =>
Expand Down

0 comments on commit cf37f21

Please sign in to comment.