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?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.