Did you know… How to change the default templates that appear in the New Project Dialog? - #342

All the tips thus far have been for project templates created by you or someone else. Let’s say you want to make a modification to an installed template, like remove some of the default ones from appearing. Or even adding one to the Program Files directory for anyone on that computer to use.

image

Since this involves modifying your Program Files directory, I strongly advise doing this at your own risk, as you’ll need administrator privileges anyways.

The installed project templates are located at

C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplates

If you want to remove the Office template from the C# New Project Dialog

  1. Move the Office folder found in the C# folder somewhere else.
  2. Close all instances of Visual Studio.
  3. from cmd line, run devenv.exe /installvstemplates  (Wait until the devenv.exe process in Task Manager finishes.)
  4. launch VS

If you launch VS before step 3 completes, none of your default project templates will appear and you will the following error message when you try to open the New Project Dialog.

image

If you get this warning. Try steps 3 and 4 again, but wait for devenv.exe to finish running in Task Manager. (and make sure all instances of VS are closed).

Technorati Tags: VS2005Tip,VS2008Tip