How do I delete NuGet packages that are not referenced by any project in my solution?

前端 未结 11 1091
攒了一身酷
攒了一身酷 2021-01-30 01:53

Somehow during the upgrade to VS2012 and .NET 4.5, I\'ve managed to get NuGet confused. There are packages that appear in the package manager (and the packages folder) that I c

11条回答
  •  -上瘾入骨i
    2021-01-30 02:40

    First open the Package Manager Console. Then select your project from the dropdown list. And run the following commands for uninstalling nuget packages.

    Get-Package

    for getting all the package you have installed.

    and then

    Uninstall-Package PagedList.Mvc

    --- to uninstall a package named PagedList.MVC

    Message

    PM> Uninstall-Package PagedList.Mvc
    Successfully removed 'PagedList.Mvc 4.5.0.0' from MCEMRBPP.PIR.
    

提交回复
热议问题