I somehow have two versions of the same NuGet package in one of my projects.
Is there a way to uninstall a specific version of that package?
I've tried Uninstall-Package [name]
and then Install-Package [name]
, although this seems to keep both versions.
This is causing issues in my code where references to classes in that package are being treated as ambiguous, and cause build errors.
您还需要指定版本
Uninstall-Package package_name -version specific_version
卸载软件包Microsoft.Azure.ServiceBus -version 3.0.1.16 -force
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.