Reputation: 888
I downloaded a Xamarin Solution from TFS and now need to restore the NuGet packages. I tried to do it like this :
Update-Package -reinstall -Project ProjectName
But it didn't work and I got this message:
This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.
How can I restore the NuGet packages? I tried to manually download android_m2repository, Clean Solution, delete bin/obj, rebuild - NOT WORKING, still :
An error occurred trying to install required android components on Project
UPD :
I tried also Update-Package –reinstall
- not worked :
This project references NuGet package(s) that are missing on this computer.
Upvotes: 11
Views: 26845
Reputation: 1620
Hi You can remove the all nuget packages.for that select nuget and right click to remove it then go to app package and remove the Packages Folder then restart your visual studio and reinstall the Nuget Packages
It works for me
Thank You :)
Upvotes: 0
Reputation: 888
I just updated my Visual Studio 2017 from 15.6.4 to 15.7.2. It helped with packages, in my case.
Upvotes: 0
Reputation: 2774
I had similar issues once where it turned out that the Android SDK that was referenced was not installed. Maybe look in that direction?
Upvotes: 1
Reputation: 9703
Right-click on the Solution and click Restore NuGet Packages
Or try running this command in the folder that has your solution file:
dotnet restore
Or
nuget restore
Upvotes: 10
Reputation: 1
Package restore is primarily enabled through Tools > Options > NuGet Package Manager in Visual Studio: Check this Screenshot
Upvotes: 0