Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get a list of available nuget updates in the commandline?

Tags:

nuget

I want to list all available updates from the nuget commandline. If I run

nuget update Solution.sln -verbosity detailed

it starts trying to update the packages immediately. I only want to list which ones are available. How do I do this?

like image 863
Yolofy Avatar asked Mar 05 '14 09:03

Yolofy


People also ask

How do you check for NuGet package updates?

Open the Package Manager Console (select Tools > NuGet Package Manager > Package Manager Console). Ensure that the Package Source option is set to DevExpress NuGet feed. Type Update-Package.

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.

What is NuGet command line?

The NuGet Command Line Interface (CLI), nuget.exe , provides the full extent of NuGet functionality to install, create, publish, and manage packages without making any changes to project files.

How do I view Nupkg contents?

Because NUPKG files are compressed with zip compression, you can also extract the files contained within them using zip utilities such as: Microsoft File Explorer (Windows) 7-Zip (Windows)


1 Answers

So if you use the NuGet Powershell Console in Visual Studio, you can do update-package -whatif to get a list of all the packages that would be updated in the current solution.

like image 76
Joost de Nijs Avatar answered Nov 11 '22 16:11

Joost de Nijs