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.

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

    Note

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

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

See Also

Concepts

How to: Locate and Organize Project and Item Templates

Default Project Templates in Visual Studio

Reference

/Setup (devenv.exe)