Geeks With Blogs


Subscribe in NewsGator Online

Thawte WOT Notary
Serving Southern Indiana

Eric Hammersley <insert impressive list of technology to blog about here>

NOTE: This is not in reference to Web Templates. In VS2005 Web Projects are created through a different menu item.  If you here because you cannot find the web project templates make sure you select New... Web Site from the File menu.

Twice I’ve installed Visual Studio 2005 (I use the Software Developer flavor, if that matters) and in the end I’ve been missing an item template or two.

Example…  I create a new Class Library project, right click the project and choose Add.  The dialog box that appears gives me a list of installed Item Templates.  After staring at it for several minutes I decided I was missing “Class”, the template to create a new class file.  Of course I could just choose Empty file and go on… but who wants to do that.  ;-)

Here’s what I think happened.  Visual Studio has a cache on disk of all the installed item templates.  My guess is that my cache got messed up.  This didn’t just happen once however, it has happened twice now.  How do you fix it?  Well, here you go.

First, close Visual Studio.  Open a new ‘Visual Studio 2005 Command Prompt’.  Once there type the following command at the prompt, press enter and wait…

devenv /installvstemplates

This will rebuild your item and project template cache.  Works like a charm.

EDIT: This doesn't appear to be working for a lot of people.  I apologize for that.  Don't let it discourage you from trying however I do not have any other solutions.  If someone does please post and I'll include it in the article.

EDIT2: There are many good solutions in the comments below.  Read on and most likely you will find your solution.

Posted on Tuesday, November 8, 2005 12:14 PM Visual Studio 2005 | Back to top

Comments on this post: Missing an item template in Visual Studio 2005? Try this...

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Eric Hammersley | Powered by: