From afb3cf00dd1bb5464b2c078a77ca036e1de74af4 Mon Sep 17 00:00:00 2001 From: Matt Whitfield Date: Sat, 11 Dec 2021 10:28:43 +0000 Subject: [PATCH] Added version number to startup UI --- .github/workflows/CI.yml | 2 +- src/ViewModel/MainWindowViewModel.cs | 9 +++++++++ src/Views/MainWindow.xaml | 8 ++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index c9f3fe3..486c384 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,4 +1,4 @@ -name: Extension build +name: NetDependencyWalker build on: pull_request: diff --git a/src/ViewModel/MainWindowViewModel.cs b/src/ViewModel/MainWindowViewModel.cs index 5493ed3..b8a1ab7 100644 --- a/src/ViewModel/MainWindowViewModel.cs +++ b/src/ViewModel/MainWindowViewModel.cs @@ -724,5 +724,14 @@ public bool FilterAssemblyVersionNode(object filterableEntity) return node.MajorVersionMismatched || !_listOnlyMajorVersionMismatches; } + + public string VersionText + { + get + { + var version = typeof(MainWindowViewModel).Assembly.GetName().Version; + return version.Major + "." + version.Minor + "." + version.Build; + } + } } } diff --git a/src/Views/MainWindow.xaml b/src/Views/MainWindow.xaml index 50716ea..5bf4797 100644 --- a/src/Views/MainWindow.xaml +++ b/src/Views/MainWindow.xaml @@ -256,6 +256,7 @@ + + + + +