private static DateTime AssemblyLastWriteTime(Assembly a)
{
try
{
if (String.IsNullOrEmpty(a.Location))
return DateTime.MaxValue;
try
{
return File.GetLastWriteTime(a.Location);
}
catch (Exception)
{
return DateTime.MaxValue;
}
}
catch
{
return DateTime.Now;
}
}