all groups > visual studio .net ide > january 2007 >
You're in the

visual studio .net ide

group:

Adding custom "new item" templates to VS2005



Adding custom "new item" templates to VS2005 Tom Dacon
1/19/2007 5:27:06 PM
visual studio .net ide: I figured out how to add my own templates to VS2003, so that I could add to
a VB.Net project new files that were pre-populated with my own code. It
involved creating the template files and some supporting JScript, in
directories under \Program Files\Microsoft Visual Studio .NET
2003\Vb7\VBWizards, followed by sprinkling various .vsz and .vsdir files
around the directory tree under VB7.

Looks to me like that whole scheme has changed with VS2005. I see some
interesting artifacts under My Documents, in and under a directory named
\Documents and Settings\<username>\My Documents\Visual Studio
2005\Templates. Looks like it would be a perfect place for the templates I
put under the VS2003 directory tree.

Also in the Visual Studio Add New Item dialog, there's a section entitled My
Templates, with nothing under it but an invitation to search on the web for
templates (which doesn't work on my machine - it just brings up the MSDN
library search dialog).

The MSDN help files don't seem to have anything on the topic of custom
templates, and Google hasn't been any help either.

Has anyone else worked this out, or found documentation on how to do it?

Thanks,
Tom Dacon
Dacon Software Consulting

Re: Adding custom "new item" templates to VS2005 alphapapalima NO[at]SPAM gmail.com
1/30/2007 4:49:46 PM
Yes, it involves having to create a vscontent file and a VSI file.
---
AddThis Social Bookmark Button