private static string GetTimeStamp(Bundle bundle, BundleContext bundleContext)
{
var lastdate = DateTime.MinValue;
foreach (var file in bundle.EnumerateFiles(bundleContext))
{
var mappedPath = HostingEnvironment.MapPath(file.IncludedVirtualPath);
if (mappedPath != null && File.Exists(mappedPath))
{
var fileDate = File.GetLastWriteTime(mappedPath);
if (fileDate > lastdate)
{
lastdate = fileDate;
}
}
}
return lastdate.ToString("yyyyMMddHHmmss");
}
}