Skip to content

Commit

Permalink
Fix: Add AssemblyVersion and use File instead of Product version in u…
Browse files Browse the repository at this point in the history
…pdater
  • Loading branch information
Piotrekol committed Jun 20, 2019
1 parent 40f906b commit 0262f57
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions App/App.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@
<Copyright>Copyright © 2017</Copyright>
<AssemblyVersion>1.1.0</AssemblyVersion>
<FileVersion>1.1.0</FileVersion>
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<PreBuildEvent />
<PreBuildEvent />
<PreBuildEvent />

</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Remote Debug|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
Expand Down
2 changes: 2 additions & 0 deletions App/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
2 changes: 1 addition & 1 deletion App/UpdateChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down

0 comments on commit 0262f57

Please sign in to comment.