daily pastebin goal
5%
SHARE
TWEET

Untitled

a guest May 16th, 2018 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Dim assemblies = AppDomain.CurrentDomain.GetAssemblies
  2. Dim assemblyName As String
  3. Dim assemblyVersion As String
  4.  
  5. For Each assembly In assemblies
  6.   assemblyName = assembly.GetName.Name.ToString
  7.   assemblyVersion = assembly.GetName.Version.ToString
  8.   ' How to get the date/time of the build??
  9.   ' ...
  10. Next
  11.    
  12. var version = Assembly.GetExecutingAssembly().GetName().Version;
  13. DateTime buildDate = new DateTime(2000, 1, 1)
  14.     .AddDays(version.Build)
  15.     .AddSeconds(version.Revision*2);
  16.    
  17. new FileInfo(Assembly.GetExecutingAssembly().Location).CreationTime;
RAW Paste Data
Top