Thursday, December 28, 2006

Restoring Missing Templates in Visual Studio 2005

The other day I noticed that I was missing the Class template in the Add New Item dialog. Not a big deal, I said, just add a text file and change the extension. That was okay for a while, but it started to wear on me - why wasn't it there?

It turns out I was missing a whole bunch of templates and a complete reinstall of Visual Studio did nothing to fix it.

Apparently quite a few people are having this problem and yes, there is a fix! Thanks to Eric Hammersley and his blog.

Or if you are lazy (like me) and skimmed most of the above, close VS, open a new VS Command Prompt and enter the following command:

devenv /installvstemplates

Worked for me!

7 comments:

Anonymous said...

Thanks, worked for me as well.

Anonymous said...

works fine in vs2008 too. thanks man.

neknif said...

Thanks, that did the trick!

Martyn said...

Brilliant. That's saved me a lot of fiddling around...

Anonymous said...

thanks mate, worked a treat!

Fernando Macedo said...

Tks! Worked on VS 2008 too.

Unknown said...

Thanks, it worked for me ^^

Powered By Blogger