private static void TryTouchWebConfig(DeploymentContext context)
{
try
{
// Touch web.config
string webConfigPath = Path.Combine(context.OutputPath, "web.config");
if (File.Exists(webConfigPath))
{
File.SetLastWriteTimeUtc(webConfigPath, DateTime.UtcNow);
}
}
catch (Exception ex)
{
context.Tracer.TraceError(ex);
}
}