public ReadOnlyCollection <T> GetAllItemsWithTopologicalSort <T> (ConfigurationSelector configuration) where T : SolutionItem { List <T> list = new List <T> (); GetAllItems <T> (list, this); return(SolutionItem.TopologicalSort <T> (list, configuration)); }
// The projects are returned in the order // they should be compiled, acording to their references. public ReadOnlyCollection <Project> GetAllProjectsWithTopologicalSort(ConfigurationSelector configuration) { List <Project> list = new List <Project> (); GetAllItems <Project> (list, this); return(SolutionItem.TopologicalSort <Project> (list, configuration)); }
public ReadOnlyCollection <SolutionItem> GetAllBuildableEntries(ConfigurationSelector configuration, bool topologicalSort, bool includeExternalReferences) { var list = new List <SolutionItem> (); if (ParentSolution != null) { return(list.AsReadOnly()); } SolutionConfiguration conf = ParentSolution.GetConfiguration(configuration); if (conf == null) { return(list.AsReadOnly()); } var collected = new HashSet <SolutionItem> (); CollectBuildableEntries(collected, configuration, conf, includeExternalReferences); list.AddRange(collected); if (topologicalSort) { return(SolutionItem.TopologicalSort(list, configuration)); } else { return(list.AsReadOnly()); } }
public ReadOnlyCollection <SolutionItem> GetAllBuildableEntries(ConfigurationSelector configuration, bool topologicalSort, bool includeExternalReferences) { var list = new List <SolutionItem> (); GetAllBuildableEntries(list, configuration, includeExternalReferences); if (topologicalSort) { return(SolutionItem.TopologicalSort <SolutionItem> (list, configuration)); } else { return(list.AsReadOnly()); } }