[英]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.