From 57cd052d6194b938408e0d2261eaff63253192a7 Mon Sep 17 00:00:00 2001 From: Gustave Monce Date: Mon, 15 Nov 2021 15:06:13 +0100 Subject: [PATCH] About: Show Build and Revision in the version field --- WPinternals/ViewModels/AboutViewModel.cs | 16 ++++++++++++++++ WPinternals/Views/About.xaml | 4 +++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/WPinternals/ViewModels/AboutViewModel.cs b/WPinternals/ViewModels/AboutViewModel.cs index fdfedb6..d7bcf94 100644 --- a/WPinternals/ViewModels/AboutViewModel.cs +++ b/WPinternals/ViewModels/AboutViewModel.cs @@ -39,5 +39,21 @@ namespace WPinternals return System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.Minor; } } + + public int BuildVersion + { + get + { + return System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.Build; + } + } + + public int RevisionVersion + { + get + { + return System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.Revision; + } + } } } diff --git a/WPinternals/Views/About.xaml b/WPinternals/Views/About.xaml index 57f09e1..33cdd84 100644 --- a/WPinternals/Views/About.xaml +++ b/WPinternals/Views/About.xaml @@ -46,9 +46,11 @@ DEALINGS IN THE SOFTWARE. - + + +