File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 11using Spectre . Console ;
22using Spectre . Console . Rendering ;
3- using System . Diagnostics ;
43using System . Reflection ;
54
65namespace KuruExtract ;
76internal static class Constants
87{
98 public static IRenderable Header =>
109 new Panel ( new Markup ( "\n Extracts game content for DayZ\n by Wardog\n " ) . Centered ( ) )
11- . Header ( $ "ExtractDayZ v{ Version } ", Justify . Center )
10+ . Header ( $ "DayZExtract v{ Version } ", Justify . Center )
1211 . SafeBorder ( )
1312 . Border ( BoxBorder . Heavy )
1413 . Expand ( ) ;
1514
16- public static string Version =>
17- FileVersionInfo . GetVersionInfo ( Assembly . GetExecutingAssembly ( ) . Location ) . FileVersion ?? "0.0.0" ;
15+ public static string Version
16+ {
17+ get
18+ {
19+ var version = Assembly . GetExecutingAssembly ( ) ? . GetName ( ) ? . Version ;
20+ return version != null ? $ "{ version . Major } .{ version . Minor } .{ version . Build } " : "0.0.0" ;
21+ }
22+ }
1823}
Original file line number Diff line number Diff line change 2020 <AssemblyName >DayZExtract</AssemblyName >
2121 <Company >Wardog</Company >
2222 <Description >Extracts game content for DayZ</Description >
23- <FileVersion >1.0.6</FileVersion >
24- <InformationalVersion >1.0.6</InformationalVersion >
23+ <FileVersion >1.0.7</FileVersion >
24+ <InformationalVersion >1.0.7</InformationalVersion >
25+ <Version >1.0.7</Version >
2526 <ApplicationIcon >gear.ico</ApplicationIcon >
2627 </PropertyGroup >
2728
You can’t perform that action at this time.
0 commit comments