This commit is contained in:
JustArchi
2018-05-23 15:28:02 +02:00
parent 4915baa7cf
commit a6b802fbc8
3 changed files with 16 additions and 17 deletions

View File

@@ -21,6 +21,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Reflection;
namespace ArchiSteamFarm {
@@ -48,6 +49,7 @@ namespace ArchiSteamFarm {
internal const string UpdateDirectory = "_old";
internal const string WebsiteDirectory = "www";
internal static string HomeDirectory => Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
internal static Guid ModuleVersion => Assembly.GetEntryAssembly().ManifestModule.ModuleVersionId;
internal static string PublicIdentifier => AssemblyName + (BuildInfo.IsCustomBuild ? "-custom" : "");
internal static Version Version => Assembly.GetEntryAssembly().GetName().Version;