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);