Ask the Expert

How can I modify all the project templates on my workstation?

VS.NET ships with a great deal of project templates. I'd like to modify all the templates on my workstation (and further, my development team) so that when a project is created (or a new class/form/webservice/control/library/etc. file), it is populated with set #region and comment declarations to make all of our code look identical. How can I do that?
You should not modify any of the existing templates, because the next time you upgrade to a new version of VS.NET, all your changes will be in jeopardy. Instead, you should create new templates, which will still show up in VS.NET where the existing templates show up, but will be safe from the ravages of the VS.NET installer.

For a description of how to build your own custom templates, I recommend reading "Adding Custom Project Item Templates to VS.NET for C# Programmers" or "Adding Custom Project Item Templates to VS.NET for VB.NET Programmers."

This was first published in November 2002

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: