feat: Added Public API Property to get the program install date based on the creation date of core dll file for Net Standard and SimplSharp

This commit is contained in:
Austin Noska
2019-08-30 17:18:18 -04:00
parent 18abe78550
commit 629ceec84e
2 changed files with 22 additions and 2 deletions

View File

@@ -55,6 +55,15 @@ namespace ICD.Common.Utils
return Assembly.GetEntryAssembly().GetName().Name;
}
}
}
/// <summary>
/// Gets the date and time the program was installed.
/// </summary>
[PublicAPI]
public static DateTime ProgramInstallDate
{
get { return IcdFile.GetCreationTime(PathUtils.Join(PathUtils.ProgramPath, ProgramFile)); }
}
}
}
#endif