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

前端 未结 11 1109
攒了一身酷
攒了一身酷 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条回答
  •  滥情空心
    2021-01-30 02:47

    From the Package Manager console window, often whatever command you used to install a package can be used to uninstall that package. Simply replace the INSTALL command with UNINSTALL.

    For example, to install PowerTCPTelnet, the command is:

    Install-Package PowerTCPTelnet -Version 4.4.9

    To uninstall same, the command is:

    Uninstall-Package PowerTCPTelnet -Version 4.4.9

提交回复
热议问题