简体   繁体   English

Visual Studio 2017在安装Nuget软件包时冻结了,现在我的Xamarin项目无法加载

[英]Visual Studio 2017 froze while installing Nuget package and now my Xamarin project doesn't load

I tried to install Xamarin.Android.Support.Annotations 28.0.0 only to the Android part of my Xamarin Forms project. 我试图仅将Xamarin.Android.Support.Annotations 28.0.0安装到Xamarin Forms项目的Android部分。

There's a popup with: 有一个弹出窗口:

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

No matter how long I wait, I can't open the project. 无论等待多长时间,我都无法打开该项目。 What do I have to do to clear the cache to be able to load my project again? 我该怎么做才能清除缓存以重新加载项目?

What do I have to do to clear the cache to be able to load my project again? 我该怎么做才能清除缓存以重新加载项目?

To clear the nuget cache, you can download the NuGet command line tool from nuget.org . 要清除nuget缓存,可以从nuget.org下载NuGet命令行工具。

Then, open a command prompt and cd to the directory to where nuget.exe is located. 然后,打开命令提示符,并cd到nuget.exe所在的目录。

You can list the local caches with this command: 您可以使用以下命令列出本地缓存:

nuget locals all -list

You can clear all caches with this command: 您可以使用以下命令清除所有缓存:

nuget locals all -clear

Check more info: Managing the global packages, cache, and temp folders . 检查更多信息: 管理全局软件包,缓存和临时文件夹

Note: If your Visual Studio is not the latest version, please try to update it, MS fixed this issue on the some newer version. 注意:如果您的Visual Studio不是最新版本,请尝试对其进行更新,MS在某些较新的版本上解决了此问题。

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 NuGet 包管理器 - 未找到项目“默认”。 - 视觉工作室 2017 - NuGet Package Manager - Project 'Default' is not found. - Visual Studio 2017 在 Visual Studio 2017 中找不到 nuget 包管理器? - Can't find the nuget package manager in visual studio 2017? Visual Studio 2017无法与我的Xamarin.iOS项目配对MacBook Pro - Visual Studio 2017 can't pair to MacBook Pro for my Xamarin.iOS project 在Visual Studio 2017中安装Microsoft.Net.Http时出现Nuget错误Microsoft.Bcl.Build - Nuget Error Microsoft.Bcl.Build while installing Microsoft.Net.Http in Visual studio 2017 从Visual Studio外部安装NuGet包 - Installing NuGet package from outside of Visual Studio 相同的代码不适用于 Visual Studio 2017 中我自己的项目 (strcpy) - same code doesn't work on my own project (strcpy) in visual studio 2017 如何从Visual Studio 2017 RC中的.NET Core MSBuild项目创建NuGet包? - How do you create a NuGet package from a .NET Core MSBuild project in Visual Studio 2017 RC? Visual Studio-安装Xamarin.Auth Nuget程序包后卡在加载/初始化解决方案上 - Visual Studio - Stuck on Loading/Initializing Solution after installing Xamarin.Auth Nuget Package Visual Studio 不加载项目引用 - Visual Studio doesn't load project references VIsual Studio 2017 NuGet软件包安装良好,但无法识别 - VIsual Studio 2017 NuGet package installs well but is not recognized
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM