diff --git a/source/ChanSort/MainForm.cs b/source/ChanSort/MainForm.cs index 8d019e1..3abe318 100644 --- a/source/ChanSort/MainForm.cs +++ b/source/ChanSort/MainForm.cs @@ -31,7 +31,7 @@ namespace ChanSort.Ui { public partial class MainForm : XtraForm { - public const string AppVersion = "v2017-10-29"; + public static string AppVersion { get; private set; } private const int MaxMruEntries = 10; private readonly List isoEncodings = new List(); @@ -60,6 +60,9 @@ namespace ChanSort.Ui this.LookAndFeel.SetSkinStyle("Office 2010 Blue"); InitializeComponent(); + var version = this.GetType().Assembly.GetName().Version; + AppVersion = new DateTime(2000, 1, 1).AddDays(version.Build).ToString("yyyy-MM-dd"); + // remember which columns should be visible by default foreach (GridColumn col in this.gviewLeft.Columns) col.Tag = col.Visible; diff --git a/source/ChanSort/Properties/AssemblyInfo.cs b/source/ChanSort/Properties/AssemblyInfo.cs index 48e693f..899af63 100644 --- a/source/ChanSort/Properties/AssemblyInfo.cs +++ b/source/ChanSort/Properties/AssemblyInfo.cs @@ -34,5 +34,5 @@ using System.Runtime.InteropServices; // 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: AssemblyVersion("1.0.*")] +//[assembly: AssemblyFileVersion("1.0.0.0")]