Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect dependency structure on different target framework #911

Open
jesperolsson-se opened this issue Oct 24, 2024 · 0 comments
Open
Labels
triage Don't know what to do with this yet

Comments

@jesperolsson-se
Copy link

A dependency may reference different dependency versions based on the project's target framework. When scanning a solution where two projects with different target frameworks reference the same dependency, the generated SBOM may incorrectly label a transitive dependency as a direct dependency.

Steps to reproduce

  1. Given a fresh solution
  2. Add a net6.0 project (P1)
  3. Let P1 reference [email protected]
  4. Add a net8.0 project (P2)
  5. Let P2 reference [email protected]
  6. Generate an SBOM for the solution

Result

@github-actions github-actions bot added the triage Don't know what to do with this yet label Oct 24, 2024
jesperolsson-se added a commit to jesperolsson-se/cyclonedx-dotnet that referenced this issue Oct 25, 2024
Signed-off-by: Jesper Olsson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Don't know what to do with this yet
Projects
None yet
Development

No branches or pull requests

1 participant