diff --git a/Discord Media Loader.Application/Properties/AssemblyInfo.cs b/Discord Media Loader.Application/Properties/AssemblyInfo.cs index 5b40bb1..842e272 100644 --- a/Discord Media Loader.Application/Properties/AssemblyInfo.cs +++ b/Discord Media Loader.Application/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern // übernehmen, indem Sie "*" eingeben: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.99.150.0")] -[assembly: AssemblyFileVersion("0.99.150.0")] +[assembly: AssemblyVersion("0.99.151.0")] +[assembly: AssemblyFileVersion("0.99.151.0")] diff --git a/Discord Media Loader/FrmSplash.cs b/Discord Media Loader/FrmSplash.cs index 33558d1..d17ee0a 100644 --- a/Discord Media Loader/FrmSplash.cs +++ b/Discord Media Loader/FrmSplash.cs @@ -25,8 +25,8 @@ namespace Discord_Media_Loader UseWaitCursor = true; try { - /*var releaseVersion = await VersionHelper.GetReleaseVersion(); - if (releaseVersion > VersionHelper.CurrentVersion) + var releaseVersion = await VersionHelper.GetReleaseVersion(); + if (releaseVersion > VersionHelper.AppVersion) { var tmpFile = Path.GetTempFileName(); var downloadManager = new FrmDownload(tmpFile, await VersionHelper.DownloadVersion(releaseVersion)); @@ -52,7 +52,7 @@ namespace Discord_Media_Loader } File.Delete(tmpFile); - }*/ + } } finally { diff --git a/Discord Media Loader/Helper/VersionHelper.cs b/Discord Media Loader/Helper/VersionHelper.cs index 74c4141..1385ef9 100644 --- a/Discord Media Loader/Helper/VersionHelper.cs +++ b/Discord Media Loader/Helper/VersionHelper.cs @@ -5,6 +5,7 @@ using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; +using DML.Application.Classes; using Octokit; namespace Discord_Media_Loader.Helper @@ -12,6 +13,7 @@ namespace Discord_Media_Loader.Helper internal class VersionHelper { internal static Version CurrentVersion => Assembly.GetExecutingAssembly().GetName().Version; + internal static Version AppVersion => typeof(Core).Assembly.GetName().Version; internal static async Task GetReleaseVersion() { diff --git a/Discord Media Loader/Properties/AssemblyInfo.cs b/Discord Media Loader/Properties/AssemblyInfo.cs index 260b75a..0f2431c 100644 --- a/Discord Media Loader/Properties/AssemblyInfo.cs +++ b/Discord Media Loader/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern // übernehmen, indem Sie "*" eingeben: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.99.150.0")] -[assembly: AssemblyFileVersion("0.99.150.0")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")]