统一修改项目模版

信息来源多处,就不一一列举了,呵呵~~请勿追究责任,本人赖皮~~

打开"C:/Program Files/Microsoft Visual Studio 8/Common7/IDE/ProjectTemplatesCache"(VS2005安装路径),找到相应的文件,如form1.cs然后将下面的注释粘贴并保存!然后新建一个工程,你的工程文件内是不是出现了如下注释

/*
 *工程:$projectname$
 * ***********************警告********************************************
 * 如果引用请不要删除本注释!
 * 版权所有(C2000-$year$
 * 公司:........
 * 地址:...
 * Date:$year$年
 * Runtime Version:$clrversion$
 * ****************************************************************** 

NET支持的模板参数如下:  
clrversion
  Current   version   of   the   common   language   runtime   (CLR).
 
GUID   [1-10]
  A   GUID   used   to   replace   the   project   GUID   in   a   project   file.   You   can   specify   up   to   10   unique   GUIDs   (for   example,   guid1).
 
itemname
  The   name   provided   by   the   user   in   the   Add   New   Item   dialog   box.
 
machinename
  The   current   computer   name   (for   example,   Computer01).
 
projectname
  The   name   provided   by   the   user   in   the   New   Project   dialog   box.
 
registeredorganization
  The   registry   key   value   from   HKLM/Software/Microsoft/Windows   NT/CurrentVersion/RegisteredOrganization.
 
rootnamespace
  The   root   namespace   of   the   current   project.   This   parameter   is   used   to   replace   the   namespace   in   an   item   being   added   to   a   project.
 
safeitemname
  The   name   provided   by   the   user   in   the   Add   New   Item   dialog   box,   with   all   unsafe   characters   and   spaces   removed.
 
safeprojectname
  The   name   provided   by   the   user   in   the   New   Project   dialog   box,   with   all   unsafe   characters   and   spaces   removed.
 
time
  The   current   time   in   the   format   DD/MM/YYYY   00:00:00.
 
userdomain
  The   current   user   domain.
 
username
  The   current   user   name.
 
year
  The   current   year   in   the   format   YYYY.

你可能感兴趣的:(技术帖子)