无法恢复 NuGet 包 [英] Can't restore NuGet Packages
问题描述
我从 TFS 下载了 Xamarin 解决方案,现在需要恢复 NuGet 包.我试着这样做:
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:
此项目引用了此计算机上缺少的 NuGet 包.使用 NuGet Package Restore 来下载它们.
This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.
如何恢复 NuGet 包?我尝试手动下载 android_m2repository,清理解决方案,删除 bin/obj,重建 - 不工作,仍然:
How can I restore the NuGet packages? I tried to manually download android_m2repository, Clean Solution, delete bin/obj, rebuild - NOT WORKING, still :
尝试在 Project 上安装所需的 android 组件时发生错误
An error occurred trying to install required android components on Project
更新:我也试过 Update-Package –reinstall
- 没有工作:
UPD :
I tried also Update-Package –reinstall
- not worked :
此项目引用了此计算机上缺少的 NuGet 包.
This project references NuGet package(s) that are missing on this computer.
推荐答案
我刚刚将 Visual Studio 2017 从 15.6.4 更新到 15.7.2.就我而言,它有助于打包.
I just updated my Visual Studio 2017 from 15.6.4 to 15.7.2. It helped with packages, in my case.
这篇关于无法恢复 NuGet 包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!