AppVersionHelper.cs 704 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.IO;
  3. using Abp.Reflection.Extensions;
  4. namespace WeApp.Configuration
  5. {
  6. /// <summary>
  7. /// Central point for application version.
  8. /// </summary>
  9. public class AppVersionHelper
  10. {
  11. /// <summary>
  12. /// Gets current version of the application.
  13. /// It's also shown in the web page.
  14. /// </summary>
  15. public const string Version = IwbConsts.Version;
  16. /// <summary>
  17. /// Gets release (last build) date of the application.
  18. /// It's shown in the web page.
  19. /// </summary>
  20. public static DateTime ReleaseDate => new FileInfo(typeof(AppVersionHelper).GetAssembly().Location).LastWriteTime;
  21. }
  22. }