diff --git a/KuruExtract/Constants.cs b/KuruExtract/Constants.cs index 183048b..b3ea21f 100644 --- a/KuruExtract/Constants.cs +++ b/KuruExtract/Constants.cs @@ -1,6 +1,5 @@ using Spectre.Console; using Spectre.Console.Rendering; -using System.Diagnostics; using System.Reflection; namespace KuruExtract; @@ -8,11 +7,17 @@ internal static class Constants { public static IRenderable Header => new Panel(new Markup("\nExtracts game content for DayZ\nby Wardog\n").Centered()) - .Header($"ExtractDayZ v{Version}", Justify.Center) + .Header($"DayZExtract v{Version}", Justify.Center) .SafeBorder() .Border(BoxBorder.Heavy) .Expand(); - public static string Version => - FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).FileVersion ?? "0.0.0"; + public static string Version + { + get + { + var version = Assembly.GetExecutingAssembly()?.GetName()?.Version; + return version != null ? $"{version.Major}.{version.Minor}.{version.Build}" : "0.0.0"; + } + } } diff --git a/KuruExtract/KuruExtract.csproj b/KuruExtract/KuruExtract.csproj index 5c4124a..11241b7 100644 --- a/KuruExtract/KuruExtract.csproj +++ b/KuruExtract/KuruExtract.csproj @@ -20,8 +20,9 @@ DayZExtract Wardog Extracts game content for DayZ - 1.0.6 - 1.0.6 + 1.0.7 + 1.0.7 + 1.0.7 gear.ico