受欢迎的博客标签

Does your Visual Studio run Slow? Flow me and fixed it with this

Published

Clear MEF  Cache 

I just fixed a very slow running VS 2015 by deleting the ComponentModelCache folder. It now snaps open! This has dogged me now for a few weeks and had tried everything before, blamed extensions and Resharper, but nothing fixed it. Mine was in C:\Users\MyName\AppData\Local\Microsoft\VisualStudio\15.0_8a1dd55a

Close all Visual Studio Instances. Remove the %LocalAppData%\Microsoft\VisualStudio\12.0\ComponentModelCache folder.

C:\Users\Administrator2\AppData\Local\Microsoft\VisualStudio\16.0_b20eae2f\ComponentModelCache

Start Visual Studio. There is a Clear MEF Component Cache extension that does this. This extension clears the MEF cache on disk and lets Visual Studio rebuild it.

The reason for clearing the MEF cache is that it can become corrupted. This ususally happens when installing or updating extensions or other Visual Studio components. Typical errors that can be solved by clearing the component cache are: Could not load package exception Could not load assembly exception Composition error when opening files Missing syntax highlighting of some languages in VS The Visual Studio component cache is located at 

%localappdata%\Microsoft\VisualStudio\14.0\ComponentModelCache.

This extension makes it easy to delete that folder so you don't have to remember the location of the cache directory. Using the extension In Visual Studio's top menu under Tools, a new command is now visible: Clicking the Clear MEF Component Cache button will prompt you to confirm and then restart Visual Studio.

Restarting Visual Studio will automatically trigger a reconstruction of the MEF cache. This is a safe operation that doesn't cause any unwanted side effects.  

https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ClearMEFComponentCache.

chrome del *.*

C:\Users\Administrator2\AppData\Local\Google\Chrome\User Data\Default\Cache

 

nuget.org

How to change NuGet.org  source in vs2022 step by step

tool->nuget

The service index location for nuget.org is https://api.nuget.org/v3/index.json.

https://docs.microsoft.com/en-us/nuget/consume-packages/install-use-packages-visual-studio