Skip to content

Commit 95c8b56

Browse files
committed
Fix version string in release builds & bump to 2.0.0
1 parent 7955d65 commit 95c8b56

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

WinJump/UI/TrayModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Diagnostics;
3+
using System.Reflection;
34
using System.Windows;
45
using System.Windows.Input;
56
using WinJump.Core;
@@ -66,7 +67,7 @@ public class TrayModel {
6667
};
6768

6869
public string Version =>
69-
$"WinJump {FileVersionInfo.GetVersionInfo(typeof(TrayModel).Assembly.Location).FileVersion}";
70+
$"WinJump {Assembly.GetEntryAssembly()?.GetName().Version?.ToString()}";
7071
}
7172

7273
public class DelegateCommand : ICommand {

WinJump/WinJump.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
<TargetFramework>net7.0-windows</TargetFramework>
66
<Nullable>enable</Nullable>
77
<UseWPF>true</UseWPF>
8+
<Version>2.0.0</Version>
9+
<AssemblyVersion>2.0.0</AssemblyVersion>
10+
<FileVersion>2.0.0</FileVersion>
811
</PropertyGroup>
912

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

0 commit comments

Comments
 (0)