• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 305
  • Last Modified:

Missing Templates?


I seem to be missing some C# templates in my Visual Studio IDE.  Specifically, I'm looking for the "class library" template, and I'm used to seeing more options in general when I select "File/New".  Do I have to download these templates?

1 Solution
Bob LearnedCommented:
Try this:

Missing an item template in Visual Studio 2005? Try this...

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 Ive installed Visual Studio 2005 (I use the Software Developer flavor, if that matters) and in the end Ive 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.  ;-)

Heres 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 didnt 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now