Skip to main content Skip to footer

How to Get a List of all NuGet Resources in a Project

Sometime support will ask you to give a list of packages in your project from Visual Studios.

Going in manually and getting all of them along with their versions is tedious so try this method.

This will return all packages in your project along with some information about them if wanted.

First, open visual studios on your desired project.

Then we will go and open up the Package Manager Console.
This is found under the Tools tab in VS and down on the drop down under NuGet Package Manager. 

Select the Package Manager Console.

Once open, paste this command into it.
Get-Package | Select-Object Id, Version, ProjectName | Sort-Object -Property Id, ProjectName

When this is done it will give a formatted list in the terminal of the different packages in your project.

Example output:

Id                                             Version ProjectName    
--                                             ------- -----------    
DS.Documents.Barcode                           8.0.1   EndUserDesigner
DS.Documents.Imaging                           8.0.1   EndUserDesigner
MESCIUS.ActiveReports.Core.DataProviders.Excel 2.0.0   EndUserDesigner
MESCIUS.ActiveReports.Design.Win               19.0.0  EndUserDesigner
MESCIUS.ActiveReports.Export.Excel             19.0.0  EndUserDesigner
MESCIUS.ActiveReports.Export.Html              19.0.0  EndUserDesigner
MESCIUS.ActiveReports.Export.Image             19.0.0  EndUserDesigner
MESCIUS.ActiveReports.Export.Pdf               19.0.0  EndUserDesigner
MESCIUS.ActiveReports.Export.Rdf               19.0.0  EndUserDesigner
MESCIUS.ActiveReports.Export.Word              19.0.0  EndUserDesigner
MESCIUS.ActiveReports.Export.Xml               19.0.0  EndUserDesigner
MySqlConnector                                 2.2.7   EndUserDesigner
Npgsql                                         6.0.11  EndUserDesigner
System.Data.SQLite.Core                        1.0.118 EndUserDesigner
System.Resources.Extensions                    6.0.0   EndUserDesigner
System.Text.Encoding.CodePages                 6.0.0   EndUserDesigner

You can edit, sort and add columns as needed, but this is an easy standard way to get your items along with the version and project they belong to if it is a multi project solution.

Victor Stahlman