Skip to content

Commit

Permalink
Fix version string in release builds & bump to 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
widavies committed Apr 17, 2023
1 parent 7955d65 commit 95c8b56
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion WinJump/UI/TrayModel.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Diagnostics;
using System.Reflection;
using System.Windows;
using System.Windows.Input;
using WinJump.Core;
Expand Down Expand Up @@ -66,7 +67,7 @@ public class TrayModel {
};

public string Version =>
$"WinJump {FileVersionInfo.GetVersionInfo(typeof(TrayModel).Assembly.Location).FileVersion}";
$"WinJump {Assembly.GetEntryAssembly()?.GetName().Version?.ToString()}";
}

public class DelegateCommand : ICommand {
Expand Down
3 changes: 3 additions & 0 deletions WinJump/WinJump.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
<TargetFramework>net7.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
<Version>2.0.0</Version>
<AssemblyVersion>2.0.0</AssemblyVersion>
<FileVersion>2.0.0</FileVersion>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
Expand Down

0 comments on commit 95c8b56

Please sign in to comment.