We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 732c3ee commit db25fdeCopy full SHA for db25fde
v2rayN/ServiceLib/Common/Utils.cs
@@ -3,6 +3,7 @@
3
using System.Net;
4
using System.Net.NetworkInformation;
5
using System.Net.Sockets;
6
+using System.Reflection;
7
using System.Runtime.InteropServices;
8
using System.Security.Cryptography;
9
using System.Security.Principal;
@@ -501,8 +502,7 @@ public static string GetVersionInfo()
501
502
{
503
try
504
- var info = FileVersionInfo.GetVersionInfo(GetExePath());
505
- return $"{info.FileMajorPart}.{info.FileMinorPart}.{info.FileBuildPart}";
+ return Assembly.GetExecutingAssembly()?.GetName()?.Version?.ToString(3) ?? "0.0";
506
}
507
catch (Exception ex)
508
0 commit comments