changes: First Commit
This commit is contained in:
27
src/ASPBaseOIDC.Core/AppVersionHelper.cs
Normal file
27
src/ASPBaseOIDC.Core/AppVersionHelper.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using Abp.Reflection.Extensions;
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace ASPBaseOIDC;
|
||||
|
||||
/// <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 = "9.3.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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user