Commit d531f6b8b939d0c827b2827c4c2fca358d5884d9
1 parent
4515e773
v1.5.1
- program verzió kiíratása a képernyőre
Showing
2 changed files
with
5 additions
and
3 deletions
Show diff stats
Vrh.Log4Pro.MaintenanceConsole/ConsoleFunction - Menu.cs
... | ... | @@ -15,6 +15,7 @@ using Vrh.Log4Pro.MaintenanceConsole.ColorConsoleNS; |
15 | 15 | using Vrh.XmlProcessing; |
16 | 16 | using VRH.Common; |
17 | 17 | using System.Xml.Linq; |
18 | +using System.Reflection; | |
18 | 19 | |
19 | 20 | namespace Vrh.Log4Pro.MaintenanceConsole.MenuNS |
20 | 21 | { |
... | ... | @@ -173,10 +174,11 @@ namespace Vrh.Log4Pro.MaintenanceConsole.MenuNS |
173 | 174 | public void DisplayTitle() |
174 | 175 | { |
175 | 176 | if (Menu.IsCommandMode()) { return; } |
176 | - | |
177 | + string version = Assembly.GetExecutingAssembly().GetName().Version.ToString(); | |
177 | 178 | ColorConsole.Clear(); |
178 | 179 | ColorConsole.WriteLine(Title, ConsoleColor.White); |
179 | 180 | ColorConsole.WriteLine(new string('-', Title.Length)); |
181 | + ColorConsole.WriteLine($"Program version: v{version}", ConsoleColor.White); | |
180 | 182 | } |
181 | 183 | |
182 | 184 | private static int SetMenuItemHeaderWidth(List<Item> MenuItemList,int columns) | ... | ... |
Vrh.Log4Pro.MaintenanceConsole/Properties/AssemblyInfo.cs
... | ... | @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; |
32 | 32 | // You can specify all the values or you can default the Build and Revision Numbers |
33 | 33 | // by using the '*' as shown below: |
34 | 34 | // [assembly: AssemblyVersion("1.0.*")] |
35 | -[assembly: AssemblyVersion("1.5.0.0")] | |
36 | -[assembly: AssemblyFileVersion("1.5.0.0")] | |
35 | +[assembly: AssemblyVersion("1.5.1.0")] | |
36 | +[assembly: AssemblyFileVersion("1.5.1.0")] | ... | ... |