IEnumerable<FileProjectItem> GetConfiguredCustomToolProjectItems(IProject project) { var fileNameFilter = new BeforeBuildCustomToolFileNameFilter(project); if (!fileNameFilter.Any()) { return new FileProjectItem[0]; } return project .Items .OfType<FileProjectItem>() .Where(item => fileNameFilter.IsMatch(item.Include)); }
IEnumerable <FileProjectItem> GetConfiguredCustomToolProjectItems(IProject project) { var fileNameFilter = new BeforeBuildCustomToolFileNameFilter(project); if (!fileNameFilter.Any()) { return(new FileProjectItem[0]); } return(project .Items .OfType <FileProjectItem>() .Where(item => fileNameFilter.IsMatch(item.Include))); }