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
In the command prompt, navigate to the location of devenv.exe. This file is located in <Visual Studio Installation Path>\Common7\IDE.
NoteIf 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.
Type "devenv /installvstemplates" and press Enter.
NoteIf 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.
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,...
- 11/18/2011
- Stefan 000000
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"
- 5/7/2010
- Peter Ritchie
- 10/6/2011
- Kemp Brown[MSFT]