mirror of
https://github.com/JuniorDark/RustyHearts-Launcher.git
synced 2026-05-07 05:21:44 -04:00
Version 1.2.0
This commit is contained in:
parent
9b3a0e00a2
commit
e74d93fab9
83 changed files with 110087 additions and 47507 deletions
18
RHLauncher.Helper/GetLauncherVersion.cs
Normal file
18
RHLauncher.Helper/GetLauncherVersion.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue