Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nuget Packages are missing in Visual Studio

I have been using xamarin studio, it works fine when I download a sample project from mvvmcross. It compiles and deploys the device perfectly.

But when I open the project in the visual studio, there are a lot of missing packages for some reasons. Is there a way of handling ? I am using Nuget 2.8 in Visual studio 2013

enter image description here

When I open Nuget as follows, there is a button to restore the missing packages. I clicked on it.

enter image description here

Then it is attempting to download the missing packages, and then it realizes there are dependencies as follows:

enter image description here

Then I am attempting to download the dependency manually as follows but it shows the packages has already downloaded but I am still seeing the missing packages in the solution, nothing is affected.

enter image description here

Therefore I am getting hundreds of errors as follows:

enter image description here

When I take a look at the property of missing packages, I see as follows

enter image description here

like image 294
casillas Avatar asked Mar 17 '26 15:03

casillas


1 Answers

You should update your NuGet Package Manager extension in Visual Studio and then try restoring the packages again.

The restore error MvvmCross.Binding already has a dependency defined for MvvmCross.Core is caused by an old version of the NuGet package manager extension not recognising the newer target frameworks that the MvvmCross.Binding NuGet package is using in its group dependencies. This bug has been fixed in a newer version of the NuGet Package Manager.

If you search for the 'already has a dependency defined' error message you will find several cases of this, such as this StackOverflow question, for example:

Can not install NuGet package

like image 117
Matt Ward Avatar answered Mar 20 '26 14:03

Matt Ward



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!