Skip to content

Commit

Permalink
Unsupported project types are included in the.. (#905)
Browse files Browse the repository at this point in the history
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 <peter.cullen@infor.com>
  • Loading branch information
petercullen68 authored Nov 17, 2024
1 parent 7279430 commit 770360c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CycloneDX/Services/ProjectFileService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,12 @@ public async Task<HashSet<DotnetDependency>> 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);

Expand Down

0 comments on commit 770360c

Please sign in to comment.