From c5b0dad6eec10bfffdff5fe2e84b61a54ec0b939 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Sat, 6 May 2017 03:04:12 +0200 Subject: [PATCH] Misc --- ConfigGenerator/Program.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ConfigGenerator/Program.cs b/ConfigGenerator/Program.cs index f0b90c7e8..069d901b1 100644 --- a/ConfigGenerator/Program.cs +++ b/ConfigGenerator/Program.cs @@ -75,13 +75,11 @@ namespace ConfigGenerator { FileVersionInfo asfVersionInfo = FileVersionInfo.GetVersionInfo(ASFExecutableFile); Version asfVersion = new Version(asfVersionInfo.ProductVersion); - Version cgVersion = Assembly.GetEntryAssembly().GetName().Version; - - if (asfVersion == cgVersion) { + if (asfVersion == SharedInfo.Version) { return; } - Logging.LogGenericErrorWithoutStacktrace(string.Format(CGStrings.ErrorVersionMismatch, asfVersion, cgVersion)); + Logging.LogGenericErrorWithoutStacktrace(string.Format(CGStrings.ErrorVersionMismatch, asfVersion, SharedInfo.Version)); Process.Start("https://github.com/" + SharedInfo.GithubRepo + "/releases/tag/" + asfVersion); Environment.Exit(1); }