简体   繁体   中英

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

在此处输入图片说明

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

在此处输入图片说明

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

在此处输入图片说明

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.

在此处输入图片说明

Therefore I am getting hundreds of errors as follows:

在此处输入图片说明

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

在此处输入图片说明

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

在解决方案资源管理器中右键单击该解决方案,然后选择“还原nuget程序包”

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM