Replaced SemanticVersion.cs with the unmodified SemVersion.cs from original author.
This commit is contained in:
@ -3,6 +3,7 @@ using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Katteker;
|
||||
using Semver;
|
||||
using TsudaKageyu;
|
||||
using Vestris.ResourceLib;
|
||||
|
||||
@ -42,7 +43,7 @@ namespace KattekerCreator
|
||||
|
||||
public string AssemblyIconPath { get; }
|
||||
|
||||
public SemanticVersion AssemblyVersion { get; private set; }
|
||||
public SemVersion AssemblyVersion { get; private set; }
|
||||
|
||||
public string Company => _company ?? string.Empty;
|
||||
|
||||
@ -82,13 +83,13 @@ namespace KattekerCreator
|
||||
return applicationIcon;
|
||||
}
|
||||
|
||||
private static SemanticVersion GetSemanticVersion(string productVersion)
|
||||
private static SemVersion GetSemanticVersion(string productVersion)
|
||||
{
|
||||
productVersion = productVersion.Replace(',', '.');
|
||||
if (SemanticVersion.TryParse(productVersion, out var semanticVersion))
|
||||
if (SemVersion.TryParse(productVersion, out var semanticVersion))
|
||||
return semanticVersion?.Change(build: string.Empty);
|
||||
Version.TryParse(productVersion, out var version);
|
||||
return SemanticVersion.Parse(version.ToString(3));
|
||||
return SemVersion.Parse(version.ToString(3));
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user