From 84613264b48528cd179baab81d7585b16c61a130 Mon Sep 17 00:00:00 2001 From: CreepyCrafter24 <33260128+CreepyCrafter24@users.noreply.github.com> Date: Sun, 8 Mar 2020 10:16:55 +0100 Subject: [PATCH] Auto-increment build tool version --- UpTool build tool/Program.cs | 3 +++ UpTool build tool/Properties/AssemblyInfo.cs | 2 +- UpTool build tool/UpTool build tool.csproj | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/UpTool build tool/Program.cs b/UpTool build tool/Program.cs index 4ed44f3..8984be2 100644 --- a/UpTool build tool/Program.cs +++ b/UpTool build tool/Program.cs @@ -2,6 +2,7 @@ using System.IO; using System.IO.Compression; using System.Linq; +using System.Reflection; namespace UpTool_build_tool { @@ -13,6 +14,8 @@ namespace UpTool_build_tool Console.WriteLine("| UpTool2 package build tools |"); Console.WriteLine("-------------------------------"); Console.WriteLine(); + Console.WriteLine($"Using version {Assembly.GetExecutingAssembly().GetName().Version}"); + Console.WriteLine(); if (args == null || args.Length == 0) args = new[] { "help" }; args[0] = args[0].TrimStart('-', '/'); diff --git a/UpTool build tool/Properties/AssemblyInfo.cs b/UpTool build tool/Properties/AssemblyInfo.cs index 9fe75b4..97290d1 100644 --- a/UpTool build tool/Properties/AssemblyInfo.cs +++ b/UpTool build tool/Properties/AssemblyInfo.cs @@ -31,5 +31,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: AssemblyVersion("1.0.*")] [assembly: AssemblyFileVersion("1.0.0.0")] \ No newline at end of file diff --git a/UpTool build tool/UpTool build tool.csproj b/UpTool build tool/UpTool build tool.csproj index 7f39799..731bb3d 100644 --- a/UpTool build tool/UpTool build tool.csproj +++ b/UpTool build tool/UpTool build tool.csproj @@ -11,6 +11,7 @@ pkgtool v4.8 512 + false 8 enable