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 for listing references into csproj from commandline(s) #4102

Closed
rrelyea opened this issue Dec 13, 2016 · 12 comments
Closed

support for listing references into csproj from commandline(s) #4102

rrelyea opened this issue Dec 13, 2016 · 12 comments

Comments

@rrelyea
Copy link
Contributor

rrelyea commented Dec 13, 2016

splitting off from #3751 - which now just covers the add side of this work

Spec draft: https://github.com/NuGet/Home/wiki/Support-dotnet-ref-add%7Cupdate%7Cdelete-packageref

@anangaur
Copy link
Member

I cannot find the the spec draft here: https://github.com/NuGet/Home/wiki/Support-dotnet-ref-add%7Cupdate%7Cdelete-packageref Has the url changed?

@mishra14
Copy link
Contributor

mishra14 commented Mar 1, 2017

Spec - https://github.com/NuGet/Home/wiki/Support-dotnet-add,-update,-remove-pkg

Though it is out of date a bit.

@mishra14
Copy link
Contributor

mishra14 commented May 9, 2017

feature request from: #5199

Maybe list should have an option for displaying all out of date packages.

@johnkors
Copy link

Id love to use this listing feature programatically in a tool I'm building.

Given a packageId,
provide me all packages having this package as a dependency recursively up to either a direct reference added by the user, or a SDK package implicitly added by the CLI (meta packages, like Microsoft.NetCore.App or NETStandard.Library).

My use case is I'm scanning for usages of vulnerable nugets (direct/transient deps), and I want to give feedback on the full dependency chain if any vulnerable dep is found so it's easier for users to know where to take action.

https://github.com/RetireNet/dotnet-retire

Atm I'm manually parsing the project.assets.json file and building up a separate object graph (no dep to the Nuget.Client library) . It would make my life alot easier if this was available in the client libraries instead.

Oh, and if such a feature already exist, please do tell! Could not find it in any doc or via looking at the source code / PRs.

@mishra14 mishra14 modified the milestones: 4.4, Future-0 Jun 16, 2017
@rrelyea rrelyea modified the milestones: Backlog, 4.4 Aug 15, 2017
@mishra14 mishra14 mentioned this issue Sep 27, 2017
@lambdakris
Copy link

lambdakris commented Nov 5, 2017

Hey, wondering what is the status of this? It has been awhile and the absence is still felt, especially if working with dotnet cli and vs code. Hope it makes it within the 15.5 timeframe...

@benjamin-bader
Copy link

I'd love to have this command at the moment. I've just learned that some transitive dependency of my project has a vulnerability, but without a way to list all direct and transitive package dependencies, I have no good way to verify that I'm no longer using the vulnerable version.

Would you be willing to accept a PR for this? This issue has been open for a long time, and I'd be happy to help.

@cwe1ss
Copy link

cwe1ss commented Jun 27, 2018

@benjamin-bader there's a nice .net core global tool for listing outdated references: https://github.com/jerriep/dotnet-outdated

@anangaur
Copy link
Member

@benjamin-bader As @cwe1ss mentioned, https://github.com/jerriep/dotnet-outdated is a nice global tool to help you. NuGet team is also working on an outdated command as specified here: Show outdated packages -- NuGet issue #5762

@benjamin-bader
Copy link

Thanks, folks, I'll give it a try. Glad to hear that nuget will support this natively.

@tillig
Copy link

tillig commented Jul 10, 2018

Wiki URL seems to have changed again. https://github.com/NuGet/Home/wiki/Support-dotnet-add,-update,-remove-pkg

@mishra14
Copy link
Contributor

@tillig Thanks. I have updated the link. :)

@mishra14 mishra14 removed their assignment Aug 13, 2018
@rrelyea
Copy link
Contributor Author

rrelyea commented May 14, 2019

Shipped dotnet list package support in dotnet sdk 2.2.100.

@rrelyea rrelyea closed this as completed May 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants