BMC/BCS.BMC/src/BCS.BMC.Core/AppVersionHelper.cs

27 lines
797 B
C#
Raw Normal View History

2022-10-10 20:44:01 +05:30
using System;
using System.IO;
using Abp.Reflection.Extensions;
namespace BCS.BMC
{
/// <summary>
/// Central point for application version.
/// </summary>
public class AppVersionHelper
{
/// <summary>
/// Gets current version of the application.
/// It's also shown in the web page.
/// </summary>
public const string Version = "7.3.0.0";
/// <summary>
/// Gets release (last build) date of the application.
/// It's shown in the web page.
/// </summary>
public static DateTime ReleaseDate => LzyReleaseDate.Value;
private static readonly Lazy<DateTime> LzyReleaseDate = new Lazy<DateTime>(() => new FileInfo(typeof(AppVersionHelper).GetAssembly().Location).LastWriteTime);
}
}