cyclonedx-dotnet icon indicating copy to clipboard operation
cyclonedx-dotnet copied to clipboard

" No project references found" shouldn't be reported as error

Open jwfx opened this issue 3 years ago • 0 comments

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.

jwfx avatar Apr 14 '22 08:04 jwfx