cyclonedx-dotnet
cyclonedx-dotnet copied to clipboard
" No project references found" shouldn't be reported as error
As of version 2.3.0, if a project has no project references of its own, this is reported as error.
As our build environment (NUKE build) is collecting messages to stderr and reports them at the end of execution, we get a list of error messages all saying "No project references found" even though execution finished successfully and a bom file was created.
https://github.com/CycloneDX/cyclonedx-dotnet/blob/d02904f74242f50270f5960ffa8d6d36e41f7e95/CycloneDX/Services/ProjectFileService.cs#L217
I believe this line here should be changed to Console.WriteLine(), as it is perfectly valid for a project to not have any project references.