Unified processing version

This commit is contained in:
2dust
2024-09-03 10:16:50 +08:00
parent 3d3d3f83df
commit 82eb3fd6bd
5 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -27,7 +27,7 @@
this.minor = int.Parse(parts[1]);
this.patch = 0;
}
else if (parts.Length == 3)
else if (parts.Length == 3 || parts.Length == 4)
{
this.major = int.Parse(parts[0]);
this.minor = int.Parse(parts[1]);
+1 -2
View File
@@ -593,8 +593,7 @@ namespace ServiceLib.Common
{
try
{
string location = GetExePath();
return FileVersionInfo.GetVersionInfo(location)?.FileVersion ?? "0.0";
return Assembly.GetExecutingAssembly()?.GetName()?.Version?.ToString() ?? "0.0";
}
catch (Exception ex)
{