I wanted to reference an old version of newtonsoft.json to my project but package manager is telling my there is a 'loop'. I have already uninstalled newtonsoft.json and it confirms that I no longer have it.
Edit: I have 2 projects in my solution. I want add an older version of 9.0 in Project B.
Project A references Newtonsoft.Json 9.0
Project B references Project A
Update 2: The Package manager UI gives me the latest one that is why I am trying to use the console.
Can anyone share some light to what really is happening here? Thanks!
In VS,go Tools=>Options=>Package Manager(Nuget Package Manager)=>Package Source
to check your available package source
, make sure you've configured and enabled Nuget.org(v3)
there, if not, configure it manually to add it as package source
.
Then in package manager
I suggest you can use command Install-Package NewtonSoft.json -Version 9.0.1
to install the package current project.
If you still get the Dependency Loop
error message, assuming you have three project in the solution, A depends on B, B depends on C. And B is the project you want to install Newtonsoft 9.0.1 package, check if A have a nuget package requires higher version than 9.0.1, or if C have a package requires higher version than 9.0.1.