Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (29 sloc) 0.82 kb
using System;
using System.Collections.Generic;
using System.IO;
public static class WeaversHistory
public static Dictionary<string, DateTime> TimeStamps;
static WeaversHistory()
TimeStamps = new Dictionary<string, DateTime>();
public static bool HasChanged(IEnumerable<string> weaverPaths)
var changed = false;
foreach (var weaverPath in weaverPaths)
var newVersion = File.GetLastWriteTimeUtc(weaverPath);
DateTime dateTime;
if (TimeStamps.TryGetValue(weaverPath, out dateTime))
if (dateTime != newVersion)
changed = true;
TimeStamps[weaverPath] = newVersion;
return changed;
Jump to Line
Something went wrong with that request. Please try again.