mirror of
https://github.com/JuniorDark/RustyHearts-Launcher.git
synced 2026-05-07 13:31:45 -04:00
18 lines
536 B
C#
18 lines
536 B
C#
using System.Diagnostics;
|
|
|
|
namespace RHLauncher.RHLauncher.Helper
|
|
{
|
|
public class GetLauncherVersion
|
|
{
|
|
public static string GetVersion()
|
|
{
|
|
// Get the version information of the application
|
|
FileVersionInfo versionInfo = FileVersionInfo.GetVersionInfo(Application.ExecutablePath);
|
|
|
|
// Extract the version number
|
|
string version = $"{versionInfo.FileMajorPart}.{versionInfo.FileMinorPart}.{versionInfo.FileBuildPart}";
|
|
|
|
return version;
|
|
}
|
|
}
|
|
}
|