1
I went to install Unity for DI and the Nuget is giving an error, I did not understand, it seems to me that it points to the Newtonsoft, see the error below:
Install-Package : An error occurred while retrieving package Metadata for 'Newtonsoft.Json.10. 0.2' from source 'C: sites meu_projeto_webapi Packages'. At line:1 char:1 + Install-Package Unity + ~~~~~~~~~~~~~~~~~~~~~~~~~ + Categoryinfo : Notspecified: (:) [Install-Package], Exception + Fullyqualifiederrorid : Nugetcmdletunhandledexception,Nuget.PackageManagement.Powershellcmdlets.Installpackagecommand
I tried to remove it like this:
PM> Unistall-Package Newtonsoft.Json RemoveDependencies
and gives an error similar to the above, but with this message:
'Removedependencies' is not found.
I have already done this and I still can’t install Unity. I will remove Newtonsoft and try to install the other package and finally Newtonsoft.Json.
– pnet
After you have updated the package, it returned you the same error?
– Netinho Santos
By Nuget I can’t remove. I did that:
Uninstall-Package Newtonsoft.Json
and gives error. There is another way for me to uninstall?– pnet
No update, he updated, at least no error.
– pnet
It has some dependencies, you have to uninstall them.
– Netinho Santos
Yeah, I did that:
Uninstall-Package Newtonsoft.Json RemoveDependencies
, unless the line above is wrong, it didn’t work either– pnet
See if this solution solves your problem. https://stackoverflow.com/a/32794295/4312593
– Netinho Santos