static Directory WalkThePathLookingForNu(Directory direc, NuConventions conventions) { Directory result = null; if (!direc.IsRoot()) { Directory bro = direc.GetChildDirectory(conventions.ProjectDirectoryName); if (bro.Exists()) { _logger.Debug(x => x.Write("Found the nu folder: {0}", bro.Name)); return bro; } if (direc.HasParentDir) { result = WalkThePathLookingForNu(direc.Parent, conventions); } } return result; }