示例#1
0
 public static IEnumerable <Project> GetProjects()
 {
     return(ProjectQueryer.GetProjectPaths().Select(path => new Project(path)));
 }
示例#2
0
        public static IEnumerable <String> GetProjectNames()
        {
            try
            {
                return(Directory.EnumerateDirectories(ProjectSettings.ProjectRoot).Select(path => ProjectQueryer.ProjectPathToName(path)));
            }
            catch (Exception ex)
            {
                Logger.Log(LogLevel.Error, "Error reading project names from disk.", ex);

                return(new List <String>());
            }
        }