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.
Restore NuGet packagesNavigate to Tools > Options > NuGet Package Manager > General, and then select the Allow NuGet to download missing packages check box under Package Restore. Enabling Restore NuGet Packages. In Solution Explorer, right-click the solution, and then select Restore NuGet Packages.
To do that, go to Tools, NuGet Packaged Manager, then go to Package Manager Settings. Go to the General section, and then make sure you have a checkmark for Allow NuGet to download missing packages and also to automatically check for missing packages during the build in Visual Studio.
Description. The dotnet restore command uses NuGet to restore dependencies as well as project-specific tools that are specified in the project file.
nuget restore will ensure all of your NuGet dependencies are downloaded and available to your project. Whereas dotnet restore is a complete restoration of all NuGet dependencies as well as references and project specific tools. Meaning that if you run nuget restore , you are only restoring NuGet packages.
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
I had similar issues once where it turned out that the Android SDK that was referenced was not installed. Maybe look in that direction?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With