This procedure enables you to create an item template using the Export Template wizard. For information on manually creating item templates, see How to: Manually Create Item Templates.
To add a custom project item template to the Add New Item dialog box
-
Create or open a project in Visual Studio.
-
Add an item to the project and modify if necessary.
-
Edit the code file to indicate where parameter replacement should take place.
-
On the File menu, click Export Template.
-
Click Item Template, select the project that contains the item, and click Next.
-
Select the item for which you want to create a template, and click Next.
-
Select the assembly references to include in the template, and click Next.
-
Enter the icon file name, template name, and template description, and click Finish.
See Also