Microsoft KB Archive/916651

= The &quot;Add New Item&quot; dialog box does not display all the item templates that are available in Visual Studio 2005 =

Article ID: 916651

Article Last Modified on 3/24/2006

-

APPLIES TO


 * Microsoft Visual Studio 2005 Standard Edition
 * Microsoft Visual Studio 2005 Professional Edition
 * Microsoft Visual Studio 2005 Express Edition
 * Microsoft Visual Studio 2005 Team System Architect Edition
 * Microsoft Visual Studio 2005 Team System Developer Edition
 * Microsoft Visual Studio 2005 Team Foundation

-





SYMPTOMS
When you try to add a new item to a Microsoft Visual Studio 2005 project by using the Add New Item dialog box, the Add New Item dialog box does not display all the item templates that are available. By default, the Add New Item dialog box displays a subdirectory in the Categories pane.



CAUSE
This problem occurs when the following conditions are true:
 * You create a new subdirectory in the %ProgramFiles%\Microsoft Visual Studio 8\Common7\IDE\ItemTemplates directory.
 * You add item templates to the new subdirectory.
 * You run the devenv.exe /installvstemplates command at the Visual Studio 2005 command prompt.



WORKAROUND
To work around this problem, click the top category in the Categories pane. The top category in the Categories pane contains the rest of the item templates that are available.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



Steps to reproduce the problem

 * 1) Locate the %ProgramFiles%\Microsoft Visual Studio 8\Common7\IDE\ItemTemplates directory.
 * 2) Create a new directory that is named My Templates.
 * 3) Open the My Templates directory.
 * 4) Create a new directory that is named 1033.
 * 5) Copy an item template .zip file to the 1033 directory.
 * 6) Click Start, click Programs, click Microsoft Visual Studio 2005, click Visual Studio Tools, and then click Visual Studio 2005 Command Prompt.
 * 7) Type devenv.exe /installvstemplates, and then press ENTER.
 * 8) Start Visual Studio 2005.
 * 9) Click File, click New, and then click Project.
 * 10) Click Visual C#, click Windows Application, type MyWinApp in the Name box, and then click OK.
 * 11) In Solution Explorer, right-click MyWinApp, click Add, and then click New Item.
 * 12) By default, the Add New Item dialog box displays the item templates that are located in the directory that you created in step 2.

Keywords: kbtshoot kbbug kbprogramming kbprb KB916651

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.