2

I need to find the installed version of a package inside my CI build script using the nuget command line.

The "list" command returns ALL packages from the nuget.org feed as far as I can tell. I only want the locally installed packages.

I know how to do this with the VS nuget powershell console. Please do not answer "use get-package". I need to do it with the nuget.exe.

However if there's a way to use the nuget command from plain powershell outside of visual studio that would be acceptable.

Craig Quillen
  • 2,057
  • 3
  • 23
  • 30

1 Answers1

0

nuget list -Source http://my.local.feed/ will list packages available in a local feed, and dir .\packages from within the top-level solution folder will show the packages installed under that location (where .\packages is the install location you have set for the solution).

From http://docs.nuget.org/docs/reference/command-line-reference#List_Command_Options and How do I specify the directory where NuGet packages are installed?

Community
  • 1
  • 1
Matthew Skelton
  • 2,220
  • 21
  • 21