mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-11-18 22:45:59 +01:00
19 lines
359 B
C#
19 lines
359 B
C#
using System.Reflection;
|
|
|
|
namespace StarterNG;
|
|
|
|
public static class AppInfo
|
|
{
|
|
|
|
public static string Version { get; } = BuildVersion();
|
|
|
|
private static string BuildVersion()
|
|
{
|
|
string text = Assembly.GetExecutingAssembly().GetName().Version?.ToString() ?? "0.0.0.0";
|
|
#if DEBUG
|
|
text += " (DEBUG)";
|
|
#endif
|
|
return text;
|
|
}
|
|
}
|