From e5b0fcf173cd456a9cdc0a84f7fe4fc8ab243e40 Mon Sep 17 00:00:00 2001 From: HeshamTB Date: Fri, 31 Aug 2018 19:32:44 +0300 Subject: [PATCH] Assembly info 2 --- OWTrack/Form1.cs | 4 ++-- OWTrack/Program.cs | 10 +--------- OWTrack/Properties/AssemblyInfo.cs | 5 +++-- 3 files changed, 6 insertions(+), 13 deletions(-) diff --git a/OWTrack/Form1.cs b/OWTrack/Form1.cs index a940c78..c5cedea 100644 --- a/OWTrack/Form1.cs +++ b/OWTrack/Form1.cs @@ -18,8 +18,8 @@ namespace OWTrack InitializeComponent(); loadSave(); checkStatus(); - label4.Text = Program.Version.ToString(); - Text = "OWTrack " + Program.Version.ToString(); + label4.Text = Program.version.ToString(); + Text = "OWTrack " + Program.version.ToString(); } private void checkStatus() diff --git a/OWTrack/Program.cs b/OWTrack/Program.cs index 5f9eea6..845a11e 100644 --- a/OWTrack/Program.cs +++ b/OWTrack/Program.cs @@ -22,14 +22,6 @@ namespace OWTrack Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } - private static Version version = new Version(Application.ProductVersion); - - public static Version Version - { - get - { - return version; - } - } + public static Version version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; } } diff --git a/OWTrack/Properties/AssemblyInfo.cs b/OWTrack/Properties/AssemblyInfo.cs index e95da8b..657d72d 100644 --- a/OWTrack/Properties/AssemblyInfo.cs +++ b/OWTrack/Properties/AssemblyInfo.cs @@ -35,7 +35,8 @@ using System.Runtime.InteropServices; // [assembly: AssemblyVersion("1.0.*")] //[assembly: AssemblyVersion("1.0.0.0")] //[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyVersion("2.0.*")] +[assembly: AssemblyFileVersion("1.0.*")] [assembly: NeutralResourcesLanguage("")] -[assembly: AssemblyVersion("1.2.3")] -[assembly: AssemblyFileVersion("1.2.3")] +