From 770360c33be39466f39fc697c4425804d659ba8b Mon Sep 17 00:00:00 2001 From: Peter Cullen <42790047+petercullen68@users.noreply.github.com> Date: Sun, 17 Nov 2024 10:27:19 -0500 Subject: [PATCH] Unsupported project types are included in the.. (#905) A fix for #896. When processing recursively through projects, apply the supported project test and skip any projects that do no satisfy the test Signed-off-by: Peter Cullen --- CycloneDX/Services/ProjectFileService.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CycloneDX/Services/ProjectFileService.cs b/CycloneDX/Services/ProjectFileService.cs index f7efe736..62eb3650 100755 --- a/CycloneDX/Services/ProjectFileService.cs +++ b/CycloneDX/Services/ProjectFileService.cs @@ -350,6 +350,12 @@ public async Task> RecursivelyGetProjectReferencesAsyn while (files.Count > 0) { var currentFile = files.Dequeue(); + + if (!Utils.IsSupportedProjectType(currentFile)) + { + continue; + } + // Find all project references inside of currentFile var foundProjectReferences = await GetProjectReferencesAsync(currentFile).ConfigureAwait(false);