c# – 无法恢复NuGet包

前端之家收集整理的这篇文章主要介绍了c# – 无法恢复NuGet包前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
@H_502_1@我从TFS下载了Xamarin解决方案,现在需要恢复NuGet包.我试着这样做:
Update-Package -reinstall -Project ProjectName

但它没有用,我收到了这条消息:

This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.

如何恢复NuGet包?我试图手动下载android_m2repository,Clean Solution,删除bin / obj,重建 – NOT WORKING,仍然:

An error occurred trying to install required android components on Project

UPD:
我也试过Update-Package -reinstall
– 没工作:

This project references NuGet package(s) that are missing on this computer.

解决方法

右键单击解决方案,然后单击Restore NuGet Packages

或者尝试在包含解决方文件文件夹中运行此命令:

dotnet restore

要么

nuget restore
原文链接:https://www.f2er.com/csharp/243286.html

猜你在找的C#相关文章