Skip to content

Commit 30a9ee7

Browse files
committed
Roll version
1 parent ac17470 commit 30a9ee7

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

KuruExtract/Constants.cs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
using Spectre.Console;
22
using Spectre.Console.Rendering;
3-
using System.Diagnostics;
43
using System.Reflection;
54

65
namespace KuruExtract;
76
internal static class Constants
87
{
98
public static IRenderable Header =>
109
new Panel(new Markup("\nExtracts game content for DayZ\nby 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
}

KuruExtract/KuruExtract.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
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

0 commit comments

Comments
 (0)