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

Support NuGet dependencies in MSBuild project files #1131

Closed
paulirwin opened this issue Mar 7, 2018 · 5 comments
Closed

Support NuGet dependencies in MSBuild project files #1131

paulirwin opened this issue Mar 7, 2018 · 5 comments

Comments

@paulirwin
Copy link
Contributor

DependencyCheck currently has an analyzer for nuspec files, but with the new MSBuild project format you now specify your NuGet dependencies directly in the .csproj/.vbproj, and it does not copy them into a packages folder such that there are .nuspec files to analyze.

For further reading, here is a blog post with the announcement.

I'd like to help contribute an analyzer for MSBuild project file dependencies.

@jeremylong
Copy link
Owner

Thanks for the PR! I will try and review it soon - but it may be a few weeks as I am doing final preparation for a conference.

@paulirwin
Copy link
Contributor Author

Note that this does not support "transitive" dependencies yet, as in dependencies of other dependencies. That might require hitting the NuGet API recursively, or perhaps someone knows of a way to query them locally that I don't. But because of this, you might want to flag this analyzer as experimental until that is resolved.

@jeremylong
Copy link
Owner

That is a really good point; if we did implement something that hit the NuGet APIs we would need to have on the roadmap support for internally hosted NuGet repos (such as available via Artifactory, etc).

@jeremylong
Copy link
Owner

@paulirwin do you know if the NuGet APIs are documented anywhere?

@lock
Copy link

lock bot commented Sep 27, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Sep 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants