Beispiel #1
0
        public static DateTime?GetBuildDate(this System.Reflection.Assembly assembly)
        {
            var dt = assembly.GetAssemblyMetadata("BuildDate");

            if (string.IsNullOrEmpty(dt))
            {
                return(null);
            }

            return(DateTime.Parse(dt));
        }
Beispiel #2
0
 public static string GetBuildNumber(this System.Reflection.Assembly assembly)
 {
     return(assembly.GetAssemblyMetadata("BuildNumber"));
 }
Beispiel #3
0
 public static string GetCommitRevision(this System.Reflection.Assembly assembly)
 {
     return(assembly.GetAssemblyMetadata("CommitRevision"));
 }