From d531f6b8b939d0c827b2827c4c2fca358d5884d9 Mon Sep 17 00:00:00 2001 From: Schwirg László Date: Wed, 30 Jun 2021 18:53:01 +0200 Subject: [PATCH] v1.5.1 - program verzió kiíratása a képernyőre --- Vrh.Log4Pro.MaintenanceConsole/ConsoleFunction - Menu.cs | 4 +++- Vrh.Log4Pro.MaintenanceConsole/Properties/AssemblyInfo.cs | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Vrh.Log4Pro.MaintenanceConsole/ConsoleFunction - Menu.cs b/Vrh.Log4Pro.MaintenanceConsole/ConsoleFunction - Menu.cs index 9c628a5..1f2061b 100644 --- a/Vrh.Log4Pro.MaintenanceConsole/ConsoleFunction - Menu.cs +++ b/Vrh.Log4Pro.MaintenanceConsole/ConsoleFunction - Menu.cs @@ -15,6 +15,7 @@ using Vrh.Log4Pro.MaintenanceConsole.ColorConsoleNS; using Vrh.XmlProcessing; using VRH.Common; using System.Xml.Linq; +using System.Reflection; namespace Vrh.Log4Pro.MaintenanceConsole.MenuNS { @@ -173,10 +174,11 @@ namespace Vrh.Log4Pro.MaintenanceConsole.MenuNS public void DisplayTitle() { if (Menu.IsCommandMode()) { return; } - + string version = Assembly.GetExecutingAssembly().GetName().Version.ToString(); ColorConsole.Clear(); ColorConsole.WriteLine(Title, ConsoleColor.White); ColorConsole.WriteLine(new string('-', Title.Length)); + ColorConsole.WriteLine($"Program version: v{version}", ConsoleColor.White); } private static int SetMenuItemHeaderWidth(List MenuItemList,int columns) diff --git a/Vrh.Log4Pro.MaintenanceConsole/Properties/AssemblyInfo.cs b/Vrh.Log4Pro.MaintenanceConsole/Properties/AssemblyInfo.cs index 12350af..d153685 100644 --- a/Vrh.Log4Pro.MaintenanceConsole/Properties/AssemblyInfo.cs +++ b/Vrh.Log4Pro.MaintenanceConsole/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.5.0.0")] -[assembly: AssemblyFileVersion("1.5.0.0")] +[assembly: AssemblyVersion("1.5.1.0")] +[assembly: AssemblyFileVersion("1.5.1.0")] -- libgit2 0.21.2