Exemple #1
0
 private static string[] GetAllBogusReferences(string path)
 {
     return(File.ReadLines(path)
            .Select(Match)
            .Where(m => m.Success)
            .Select(m => m.Value)
            .Select(relPath => Wand.ToAbsolutePath(relPath, Directory.GetParent(path).FullName))
            .Where(absPath => !File.Exists(absPath))
            .ToArray());
 }
Exemple #2
0
        private static string[] GetHostPaths()
        {
            var serviceJsonPath = Path.Combine(Wand.MercurySourceDir, @"..\Hosting\AllServices.json");
            var serviceJson     = File.ReadAllText(serviceJsonPath);
            var roles           = (JArray)JObject.Parse(serviceJson)["Roles"];

            return(roles.Select(r => r["Assembly"].ToString())
                   .Select(relPath => Wand.ToAbsolutePath(relPath, Wand.MercurySourceDir))
                   //Strip everything after \bin\
                   .Select(absPath => GetUntil(absPath, @"\bin\"))
                   .ToArray());
            //
        }