3 out of 7 rated this helpful - Rate this topic

How to: Restore Default Project Templates

If you accidentally delete the default project templates that are included with Visual Studio, you can use this procedure to restore them without reinstalling Visual Studio.

To restore the default project templates

  1. In the command prompt, navigate to the location of devenv.exe. This file is located in <Visual Studio Installation Path>\Common7\IDE.

    NoteNote

    If you are running Windows Vista or Windows 7, you must open the command prompt as an administrator by right-clicking the command prompt and then clicking Run as administrator.

  2. Type "devenv /installvstemplates" and press Enter.

    NoteNote

    If you are using an Express Edition of Visual Studio, type "<ExpressName>Express /installvstemplates" where <ExpressName> is either VB or VCS for Visual Basic and Visual C#, respectively.

    If this procedure does not restore the default templates, reinstall Visual Studio.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Doesn't help...
If I try to make a new Test Project (via the unit test wizard) in VS 2010 Premium I get the message, that the Test Project templates are missing.

I tried to reinstall visual studio (repair function) and the devenv.exe/installvstemplates - but both didn't have any effect...

I use Windows 7, 64bit,...
Need Administrator Privledges
[UPDATE: Added note to first step informing users to do this. Thanks.]

If you're running Windows 7 (and presumably Vista), you have to run the command prompt with the administrator account (in the start menu, right click the Visual Studio Command Prompt item then click "Run as administrator", otherwise you will get the message "The operation could not be completed"
Advertisement