From 0262f57373f445e1f57e3a5b4d652f42a0cf74da Mon Sep 17 00:00:00 2001 From: Piotrekol Date: Thu, 20 Jun 2019 12:30:37 +0200 Subject: [PATCH] Fix: Add AssemblyVersion and use File instead of Product version in updater --- App/App.csproj | 3 +++ App/Properties/AssemblyInfo.cs | 2 ++ App/UpdateChecker.cs | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/App/App.csproj b/App/App.csproj index d7e4831..256a736 100644 --- a/App/App.csproj +++ b/App/App.csproj @@ -7,9 +7,12 @@ Copyright © 2017 1.1.0 1.1.0 + false + false + true diff --git a/App/Properties/AssemblyInfo.cs b/App/Properties/AssemblyInfo.cs index 7b7e1f4..ec99762 100644 --- a/App/Properties/AssemblyInfo.cs +++ b/App/Properties/AssemblyInfo.cs @@ -8,3 +8,5 @@ // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("f87a0f61-b6f3-4b5e-8a1a-c19c8c8feaa4")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/App/UpdateChecker.cs b/App/UpdateChecker.cs index 617e398..aea1a7d 100644 --- a/App/UpdateChecker.cs +++ b/App/UpdateChecker.cs @@ -16,7 +16,7 @@ public class UpdateChecker : IUpdateModel public UpdateChecker() { var version = FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location); - CurrentVersion = new Version(version.ProductVersion); + CurrentVersion = new Version(version.FileVersion); } public bool Error { get; private set; }