From 5ff06c3ae42075d3182f8a7ecb2cdf80b03dc9f9 Mon Sep 17 00:00:00 2001 From: Dan Oak Date: Thu, 13 Jun 2024 23:30:39 +0100 Subject: [PATCH] fix local version --- src/EoPatcher.UI/Main.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/EoPatcher.UI/Main.cs b/src/EoPatcher.UI/Main.cs index d2eaed3..5d08bba 100644 --- a/src/EoPatcher.UI/Main.cs +++ b/src/EoPatcher.UI/Main.cs @@ -1,8 +1,5 @@ using EoPatcher.Services; using EoPatcher.Services.VersionFetchers; -using OneOf; -using OneOf.Types; -using System.Diagnostics; using System.Media; using System.Reflection; @@ -27,7 +24,7 @@ public Main() private void Main_Shown(object sender, EventArgs e) { - string version = FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).FileVersion ?? "0.0.0.0"; + string version = Assembly.GetEntryAssembly().GetName().Version.ToString() ?? "0.0.0.0"; lblTitle.Text = $"Endless Online Patcher v{version}"; SetPatchText("Getting local version...");