1
0
mirror of synced 2024-12-01 02:27:22 +01:00

Skip revision at the end on version checks

This commit is contained in:
KillzXGaming 2020-08-31 20:07:27 -04:00
parent b15536da82
commit b7761f6455
2 changed files with 3 additions and 3 deletions

View File

@ -614,7 +614,7 @@ namespace Toolbox
{
string commit = $"Commit: {Runtime.CommitInfo}";
var asssemblyVersion = Assembly.GetExecutingAssembly().GetName().Version;
var version = $"{asssemblyVersion.Major}.{asssemblyVersion.MajorRevision}.{asssemblyVersion.Minor}";
var version = $"{asssemblyVersion.Major}.{asssemblyVersion.MajorRevision}.{asssemblyVersion.MinorRevision}";
if (DisplayVersion)
Text = $"{Application.ProductName} | Version: {Runtime.ProgramVersion} | {commit} | Compile Date: {Runtime.CompileDate} Assembly {version}";

View File

@ -6,7 +6,7 @@ using Octokit;
using System.IO;
using System.Net;
using System.Diagnostics;
using System.Security.Cryptography;
using System.Linq;
using Toolbox.Library;
using System.Reflection;
@ -32,7 +32,7 @@ namespace Toolbox
GetCommits(client).Wait();
var asssemblyVersion = Assembly.GetExecutingAssembly().GetName().Version;
var version = $"{asssemblyVersion.Major}.{asssemblyVersion.MajorRevision}.{asssemblyVersion.Minor}";
var version = string.Concat(asssemblyVersion.ToString().Reverse().Skip(2).Reverse());
var lastestRelease = Releases.FirstOrDefault(x => x.Name.Contains($"v{version}"));
if (lastestRelease != null)