Missing Templates?

Posted on 2008-11-07
Last Modified: 2013-12-17

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?

Question by:NigelRocks
    1 Comment
    LVL 96

    Accepted Solution

    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Flash ( has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
    Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now