【问题标题】:Visual Studio 2017 froze while installing Nuget package and now my Xamarin project doesn't loadVisual Studio 2017 在安装 Nuget 包时冻结,现在我的 Xamarin 项目无法加载
【发布时间】:2019-05-29 20:19:35
【问题描述】:

我尝试仅将 Xamarin.Android.Support.Annotations 28.0.0 安装到我的 Xamarin Forms 项目的 Android 部分。

有一个弹出窗口:

Microsoft Visual Studio is busy
We'll automatically report this delay to Microsoft...

无论我等待多久,我都无法打开该项目。我必须做些什么来清除缓存才能再次加载我的项目?

【问题讨论】:

  • 从 packages.config 和 csproj 文件中手动删除包条目?

标签: visual-studio xamarin xamarin.android nuget nuget-package-restore


【解决方案1】:

我必须做些什么来清除缓存才能再次加载我的项目?

要清除nuget缓存,可以从nuget.org下载NuGet命令行工具。

然后,打开命令提示符并 cd 到 nuget.exe 所在的目录。

您可以使用以下命令列出本地缓存:

nuget locals all -list

您可以使用此命令清除所有缓存:

nuget locals all -clear

查看更多信息:Managing the global packages, cache, and temp folders

注意:如果您的 Visual Studio 不是最新版本,请尝试更新它,MS 在某些较新版本上修复了此问题。

希望这会有所帮助。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多