You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
797 B

2 years ago
  1. using System;
  2. using System.IO;
  3. using Abp.Reflection.Extensions;
  4. namespace BCS.BMC
  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 = "7.3.0.0";
  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 => LzyReleaseDate.Value;
  21. private static readonly Lazy<DateTime> LzyReleaseDate = new Lazy<DateTime>(() => new FileInfo(typeof(AppVersionHelper).GetAssembly().Location).LastWriteTime);
  22. }
  23. }