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.


    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.


    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.

See Also


/Setup (devenv.exe)


How to: Locate and Organize Project and Item Templates

Default Project Templates in Visual Studio