From f6e039a08db2e2267b47f669cc0000992f4d23b2 Mon Sep 17 00:00:00 2001 From: hbeham Date: Sun, 29 Oct 2017 16:11:00 +0100 Subject: [PATCH] using automated VC build number to show build date in window title --- source/ChanSort/MainForm.cs | 5 ++++- source/ChanSort/Properties/AssemblyInfo.cs | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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")]