From e83f95e1dbb67b664743c08552cb2db3c78ea893 Mon Sep 17 00:00:00 2001 From: DHancock Date: Fri, 27 Sep 2019 20:35:45 +0100 Subject: [PATCH] Bump build number Set build number and version file for next release. Add test code to debug builds only that checks the new version number (as its not yet been merged into master). --- FieldChooser.csproj | 4 +++- FieldChooser.version | 2 +- Properties/AssemblyInfo.cs | 8 ++++---- Source/FieldChooserExt.cs | 9 +++++---- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/FieldChooser.csproj b/FieldChooser.csproj index 79e6eac..79c7566 100644 --- a/FieldChooser.csproj +++ b/FieldChooser.csproj @@ -76,7 +76,9 @@ Resources.Designer.cs - + + Always + diff --git a/FieldChooser.version b/FieldChooser.version index ac35e7e..5794335 100644 --- a/FieldChooser.version +++ b/FieldChooser.version @@ -1,3 +1,3 @@ : -FieldChooser:1.0 +FieldChooser:1.1 : \ No newline at end of file diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index b422b95..fd31370 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -9,9 +9,9 @@ [assembly: AssemblyTitle("FieldChooser")] [assembly: AssemblyDescription("A plug in that allows you to choose individual characters from a field.")] [assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("david@davidhancock.net")] +[assembly: AssemblyCompany("David Hancock")] [assembly: AssemblyProduct("KeePass Plugin")] -[assembly: AssemblyCopyright("")] +[assembly: AssemblyCopyright("Copyright 2019 David Hancock")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -33,7 +33,7 @@ // 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.1")] +[assembly: AssemblyFileVersion("1.1")] [assembly: NeutralResourcesLanguage("en")] diff --git a/Source/FieldChooserExt.cs b/Source/FieldChooserExt.cs index 393184f..733af82 100644 --- a/Source/FieldChooserExt.cs +++ b/Source/FieldChooserExt.cs @@ -113,16 +113,17 @@ public override ToolStripMenuItem GetMenuItem(PluginMenuType t) /// /// URL of a version information file. See /// https://keepass.info/help/v2_dev/plg_index.html#upd - /// - /// Although this is the first released version and no updates will be - /// available this is required so KeePass can indicate that this plug in - /// is up to date. See main menu Help -> Check For Updates /// public override string UpdateUrl { get { +#if DEBUG + string dir = System.IO.Path.GetDirectoryName(typeof(FieldChooserExt).Assembly.Location); + return System.IO.Path.Combine(dir, "FieldChooser.version"); +#else return "https://raw.githubusercontent.com/DHancock/FieldChooser/master/FieldChooser.version"; +#endif } }