Skip to content

Instantly share code, notes, and snippets.

@wellwind
Created February 23, 2016 03:04
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wellwind/91ef37b15eb22a2992bc to your computer and use it in GitHub Desktop.
Save wellwind/91ef37b15eb22a2992bc to your computer and use it in GitHub Desktop.
Clear Visual Studio component model cache, it's useful when visual studio crash but have no ideal how to fix.
DEL %userprofile%\AppData\Local\Microsoft\VisualStudio\10.0\ComponentModelCache
DEL %userprofile%\AppData\Local\Microsoft\VisualStudio\12.0\ComponentModelCache
DEL %userprofile%\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache
@ArunEdathadan
Copy link

it helped me to find the folder

@defilerc
Copy link

Short and clear! Please note that %userprofile%\appdata\local can be further simplified to %localappdata%

@henry701
Copy link

Thanks!

@AdjWang
Copy link

AdjWang commented Feb 10, 2022

It works! I'm using Visual Studio 2019 Version 16.11.9 and the vs just hanging when creating or opening an ASP.NET project. After deleting %USERPROFILE%\AppData\Local\Microsoft\VisualStudio\16.0_5cdf7533\ComponentModelCache , everything works fine now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment