Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual studio 2008 class template missing

My class template is missing from the "add new item" dialog.

this file exists and has the template files inside

C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\CSharp\Code\1033\Class.zip

but the cache folder is empty:

C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplatesCache\CSharp\Code\1033\Class.zip

I have tried

manually copying files to cache folder

deleting cache folder to let VS recreate it

devenv /installvstemplates

devenv /resetsettings

devenv.exe /resetuserdata

but nothing shows up and the Class.zip folder in ItemTemplatesCache remains empty

like image 427
Peter Goras Avatar asked Aug 02 '26 22:08

Peter Goras


1 Answers

Recap:

You mentioned running devenv.exe /installvstemplates and that the Class.zip file is in the ItemTemplates folder and the description for that from MSDN is:

Registers project or item templates that are located in \Common7\IDE\ProjectTemplates or \Common7\IDE\ItemTemplates so they can be accessed through the New Project and Add New Item dialog boxes.

Yet the class item template is still not registering when you create a new class from Add New Item


Maybe try deleting (backup first) your Visual Studio 2008 App Settings completely located C:\Users\[User]\AppData\Local\Microsoft\VisualStudio\9.0 or login as a different user to Windows and see if the same issue exists.


And of course as a last resort re-install VS 2008

like image 104
MikeM Avatar answered Aug 07 '26 01:08

MikeM