ASPTemplate/Backend/Utils/ApplicationInformation.cs
2023-04-08 12:48:27 +02:00

17 lines
661 B
C#

using System.Reflection;
namespace ASPTemplate.Backend.Utils;
public static class ApplicationInformation {
public const bool WideContainers = false;
public const string Project = "ASPTemplate";
public const string Repository = "https://git.ztn.sh/zotan/ASPTemplate";
public static readonly string Version =
((AssemblyInformationalVersionAttribute)Assembly.GetEntryAssembly()!.GetCustomAttributes(typeof(AssemblyInformationalVersionAttribute), false)[0])
.InformationalVersion[6..];
public static readonly string LinkVersion = Version.Length >= 8 ? Version[..8] : Version;
public static readonly bool HasVersion = Version != "unknown";
}