コード例 #1
0
        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));
        }
コード例 #2
0
        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)));
        }