private static void AssertFileExists(IEnumerable<string> xapPaths) { foreach (var xapPath in xapPaths) { if (!File.Exists(xapPath)) { throw new FileNotFoundException("File could not be found. [{0}]".FormatWith(xapPath)); } } }