简体   繁体   中英

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.

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 .

Then, open a command prompt and cd to the directory to where nuget.exe is located.

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.

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM