Auto-increment build tool version
This commit is contained in:
parent
60d0dae5d4
commit
84613264b4
@ -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('-', '/');
|
||||
|
@ -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")]
|
@ -11,6 +11,7 @@
|
||||
<AssemblyName>pkgtool</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>false</Deterministic>
|
||||
<LangVersion>8</LangVersion>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
Reference in New Issue
Block a user