diff --git a/source/Reloaded.Mod.Launcher.Lib/Utility/Version.cs b/source/Reloaded.Mod.Launcher.Lib/Utility/Version.cs index ef0f24bb..3b478468 100644 --- a/source/Reloaded.Mod.Launcher.Lib/Utility/Version.cs +++ b/source/Reloaded.Mod.Launcher.Lib/Utility/Version.cs @@ -34,8 +34,12 @@ public static class Version if (_version != null) return _version; - if (File.Exists(Constants.VersionFilePath)) - return SetAndReturnVersion(NuGetVersion.Parse(File.ReadAllText(Constants.VersionFilePath))); + try + { + if (File.Exists(Constants.VersionFilePath)) + return SetAndReturnVersion(NuGetVersion.Parse(File.ReadAllText(Constants.VersionFilePath))); + } + catch { /* Ignore */ } return SetAndReturnVersion(new NuGetVersion(Assembly.GetEntryAssembly()!.GetName().Version)); }