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

Fix dotnet project.assets dependency tree #638

Merged

Conversation

robaliias
Copy link
Contributor

@robaliias robaliias commented Oct 15, 2023

Expand the package name, version tracking by keeping a separate entry for each target framework.

Fixes an issue where package dependency versions were incorrect when different target frameworks contained different versions of the package.

@@ -4813,7 +4813,7 @@ export const parseCsProjAssetsData = async function (csProjData) {
}
}
pkgList.push(pkg);
pkgNameVersionMap[name] = version;
pkgNameVersionMap[name + framework] = version;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one!

Copy link
Collaborator

@prabhu prabhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will ask you to review all dotnet related PR from now on!

@prabhu prabhu merged commit 38c1ef2 into CycloneDX:master Oct 15, 2023
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants