From 7c1b533d7931872d16a87e83831f72cfe16d2762 Mon Sep 17 00:00:00 2001 From: szporowolik Date: Sat, 2 Nov 2019 18:22:20 +0100 Subject: [PATCH] Version check will not run for DEBUG builds --- 02_Windows_App/Perun_v1/01_Classes/PerunHelper.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/02_Windows_App/Perun_v1/01_Classes/PerunHelper.cs b/02_Windows_App/Perun_v1/01_Classes/PerunHelper.cs index 0617c05..5f4c5b6 100644 --- a/02_Windows_App/Perun_v1/01_Classes/PerunHelper.cs +++ b/02_Windows_App/Perun_v1/01_Classes/PerunHelper.cs @@ -60,6 +60,7 @@ internal class PerunHelper public static int CheckVersions() { +#if !DEBUG // Checks the versions of APP, DCS Hook and MySQL database Match match = Regex.Match(Globals.VersionPerun, @"^\d+.\d+.\d+", RegexOptions.Compiled | RegexOptions.IgnoreCase); string VersionApp = "v" + match.Groups[0].Value; @@ -90,5 +91,8 @@ internal class PerunHelper } return ReturnValue; +#else + return 1; +#endif } } \ No newline at end of file