Now open up Visual Studio and you should see your two cache folders being recreated. Don’t worry, that’s what it’s supposed to do. It should only take a second and nothing obvious will happen.
You can use the devenv.exe to reinstall your templates. On my system, that’s:Ĭd C:Program Files (x86)Microsoft Visual Studio 10.0Common7IDE Now open up an elevated command prompt (run as administrator) and navigate to that same directory. Clear your cachesĬlose down Visual Studio and delete the two cache folders ItemTemplatesCache and ProjectTemplatesCache (or back them up if you don’t want to throw caution to the wind). If templates are missing from Visual Studio, something’s probably gone wrong with your cache. The cache folders contain the unpacked versions. The two templates folders contain the zipped up sources for the item templates you use inside Visual Studio. If you have a look inside your VS installation folder \Common7\IDE\, you’ll see these folders: I still had the “Add Class” option in the dropdown but no “Class” option when I got into the “Add New Item” dialogue. So, I was trying to add a new class to a project in Visual Studio and the template for it seemed to have disappeared.