Open% Program Files% \ Microsoft Visual Studio 8 \ Common7 \ IDE \ ItemTemplates \ CSharp \ 1033 \ Class.zip, Or:% Program Files% \ Microsoft Visual Studio 9.0 \ Common7 \ IDE \ ItemTemplates \ CSharp \ Code \ 1033
You can modify the class.cs file in what is used to generate all the new C # source files - it looks like this:
using System; using System.Collections.Generic; using System.Text; namespace $rootnamespace$ { class $safeitemrootname$ { } }
In addition, there is a Class.vstemplate file. Open this and you can edit the following:
<Reference> <Assembly>System</Assembly> </Reference> <Reference> <Assembly>System.Data</Assembly> </Reference> <Reference> <Assembly>System.Xml</Assembly> </Reference> </References>
Daniel Dyson
source share