Auto-increment build tool version

This commit is contained in:
CreepyCrafter24 2020-03-08 10:16:55 +01:00
parent 60d0dae5d4
commit 84613264b4
3 changed files with 5 additions and 1 deletions

View File

@ -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('-', '/');

View File

@ -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")]

View File

@ -11,6 +11,7 @@
<AssemblyName>pkgtool</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>false</Deterministic>
<LangVersion>8</LangVersion>
<Nullable>enable</Nullable>
</PropertyGroup>