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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With