private List <string> GetTfsSolutionItems() { Console.WriteLine("Getting TFS items from parent folder..."); var items = m_tfs.GetChildItems(Paths.TfsSolutionPath) .Select(item => item.ServerPath) .Where(path => String.Compare(Paths.TfsSolutionPath, path, StringComparison.OrdinalIgnoreCase) != 0) .ToList(); Console.WriteLine("Found {0} solution items.", items.Count); return(items); }
public List <string> GetChildItems(string path) { path = path.TrimEnd('/'); // xxx TODO: here we should use case-insensitive replacement return(m_tfs.GetChildItems(path) .Select(item => item.IsFolder ? item.ServerPath + '/' : item.ServerPath) .Select(item => item.Replace(path + '/', String.Empty)) .Where(item => !String.IsNullOrEmpty(item)) .ToList()); }