How do I list all installed NuGet packages?

前端 未结 9 1892
旧时难觅i
旧时难觅i 2020-12-23 15:58

How does one list all locally installed NuGet packages?

Is there a NuGet equivalent of RPM -qa? Within Chocolatey there is the chocolatey list -loc

9条回答
  •  情话喂你
    2020-12-23 16:24

    Get-Package -ProjectName "Your.Project.Name"
    

    Will show the packages for the specified project.

    See also: Package Manager Console PowerShell Reference

    Note that each project will have a packages.config file which is used to track installed packages. If this is altered (specifically if you alter it backwards), the projects may not automatically download the correct package version. In that case, make a note of the packages required and do a uninstall-package, followed by a install-package for each.

    Also, backups are your friend! ;)

提交回复
热议问题