diff --git a/PostScriptumMortarCalculator/Properties/AssemblyInfo.cs b/PostScriptumMortarCalculator/Properties/AssemblyInfo.cs index c2b681f..4a58f9a 100644 --- a/PostScriptumMortarCalculator/Properties/AssemblyInfo.cs +++ b/PostScriptumMortarCalculator/Properties/AssemblyInfo.cs @@ -49,6 +49,6 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] -[assembly: AssemblyInformationalVersion("1.0.0.0")] \ No newline at end of file +[assembly: AssemblyVersion("1.1")] +[assembly: AssemblyFileVersion("1.1")] +[assembly: AssemblyInformationalVersion("1.1")] \ No newline at end of file diff --git a/PostScriptumMortarCalculator/Services/UpdateService.cs b/PostScriptumMortarCalculator/Services/UpdateService.cs index 4211065..4123f33 100644 --- a/PostScriptumMortarCalculator/Services/UpdateService.cs +++ b/PostScriptumMortarCalculator/Services/UpdateService.cs @@ -22,7 +22,8 @@ public async Task CheckForUpdate() #if (!DEBUG) var release = await m_client.Repository.Release.GetLatest(c_OWNER_NAME, c_REPO_NAME); var releaseVersion = decimal.Parse(release.TagName); - var currentVersionString = Assembly.GetExecutingAssembly().GetName().Version.ToString(); + var ver = Assembly.GetExecutingAssembly().GetName().Version; + var currentVersionString = $"{ver.Major}.{ver.Minor}"; var currentVersion = decimal.Parse(currentVersionString); return new UpdateInfo(currentVersion, releaseVersion, c_RELEASE_PATH); #endif