-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uninstall-package w/ -RemoveDependencies will fail if multiple packages share a common dependency #4026
Comments
@SupporterMan - it would help us prioritize, if you could help tell us if this had worked in earlier versions? |
@rrelyea My guess would be that hasn't been working for quite some time. Uninstalling packages is like super core feature of a package manager, I would probably suggest this is a P0 issue. Uninstalling anything is quite some pain right now |
@rrelyea I have tested in nuget 3.0 and nuget 3.4.4, the same result. It seems that it doesn't work from previous version of NuGet. |
This appears to be a problem with packages.config projects. If you move to Project.json (uwp-style) today, or PackageReferences in VS2017 and later, it moves to a place where you only list those 2 dependencies (WindowsAzure.Storage or Nancy.Serialization.JsonNet). At that point, you can more easily remove usage of either one. We're going to be focusing our energy on PackageReferences, and enabling everybody to move towards that model. As such, there are things that are less than ideal about Packages.Config projects and how they work in NuGet. Our solution here is to migrate people towards PackageReferences (or uwp-style project.json if they cannot require vs2017). |
I have nuget version 3.5.0 but i want to downgrade it to 3.4.0 so how to do this.or what can be done in this case |
Details about Problem
According to the document for Uninstall NuGet packages, the "-RemoveDependencies" parameter could "Uninstalls the package and its unused dependencies. That is, if any dependency has another package that depends on it, it is skipped.".
But if there are two packages that both depend on a same dependencies, when I try use command "Uninstall-Package PackageName -RemoveDependencies", it will give me below error message and the process of uninstall package is failed.
NuGet product used: Package Manager Console
NuGet version: 3.5.0
VS version: Visual Studio 2015 with Update 3
Detailed repro steps so we can see the same problem
The text was updated successfully, but these errors were encountered: