From 19361504935a528949b98d6b96a2edcdb21b86d2 Mon Sep 17 00:00:00 2001 From: Peter Cullen Date: Tue, 3 Sep 2024 20:45:30 -0400 Subject: [PATCH] Unsupported project types are included in the.. 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 d0b829bb..1cb7afba 100755 --- a/CycloneDX/Services/ProjectFileService.cs +++ b/CycloneDX/Services/ProjectFileService.cs @@ -344,6 +344,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);