Welcome to MSDN Blogs Sign in | Join | Help

Sara Ford's Weblog

My adventures embracing open source on CodePlex and at Microsoft

News

    • Did you know... All author proceeds go directly to sending Hurricane Katrina survivors to college.

      Microsoft Visual Studio Tips book

      Recent Entries

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: ,
Posted: Friday, October 24, 2008 3:00 AM by saraford

Comments

Visual Studio Hacks said:

My latest in a series of the weekly, or more often, summary of interesting links I come across related to Visual Studio. Scott Guthrie posted the latest installment of links for ASP.NET, Visual Studio, WPF and Silverlight . Vance Morrison posted links

# October 24, 2008 11:10 AM

Hamid said:

Hey there sara, thanks for the great weblog and sidebar gadget. i'm really getting tired of templates, come on, seriously. please talk about something else.

# October 24, 2008 11:55 AM

saraford said:

Hi Hamid, thanks for reading the series. I looked at the queue, and Tuesday starts new stuff.

# October 24, 2008 12:27 PM

Brian McNamara said:

Use devenv.com instead of devenv.exe.  The former blocks, which means you don't need to use task manager to see when it's done, just wait to get back to the cmd prompt.

# October 25, 2008 6:28 AM

Penn said:

http://blogs.msdn.com/saraford/archive/2008/01/04/did-you-know-use-ctrl-tab-to-bring-up-the-ide-navigator-to-get-a-bird-s-eye-view-and-navigation-of-all-open-files-and-tool-windows-in-visual-studio.aspx

"If you accidentally get the IDE Navigator stuck in this state, email me for the registry key to delete."

Would it have taken that long to put the information in your post?

# October 25, 2008 6:08 PM

xjb said:

# March 10, 2009 10:31 PM
New Comments to this post are disabled
Page view tracker