Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List all the nuget packages with "dependencies recursively" for a given project/Solution for .NET Core project in VS2017

I want to list down all the nuget packages along with its dependencies recursively. Project is in VS2017 and .NET Core.

I tried with Get-Package -ProjectName "Your.Project.Name" it displays all the nuget packages in project. I want all the dependencies also printed.

like image 815
Pavan Avatar asked Mar 26 '19 14:03

Pavan


People also ask

How do I get a list of NuGet packages?

go to the Project or Solution in question. right click, Manage NuGet Packages... on the left, you will see 'Installed Packages' click on this and you will see the list.

Does NuGet package include dependencies?

nupkg file. The option -IncludeReferencedProjects does include all the referenced project dependencies to the .

What is NuGet package in asp net core?

Put simply, a NuGet package is a single ZIP file with the . nupkg extension that contains compiled code (DLLs), other files related to that code, and a descriptive manifest that includes information like the package's version number.


1 Answers

You can use the dotnet cli: dotnet list package --include-transitive. The dotnet-outdated global tool probably has similar functionality.

like image 83
zivkan Avatar answered Oct 29 '22 21:10

zivkan