Home >php教程 >php手册 >c# 自定义模板

c# 自定义模板

WBOY
WBOYOriginal
2016-06-06 20:00:351696browse

D:/Program Files/Microsoft Visual Studio 8/Common7/IDE/ItemTemplates/Web/CSharp/2052 系统自带模板 相应的模板复制到 C:/Documents and Settings/Administrator/My Documents/Visual Studio 2005/Templates/ItemTemplates 自定义模板 模板参数 最好的方

 

 

D:/Program Files/Microsoft Visual Studio 8/Common7/IDE/ItemTemplates/Web/CSharp/2052 系统自带模板

 

相应的模板复制到

 

C:/Documents and Settings/Administrator/My Documents/Visual Studio 2005/Templates/ItemTemplates 自定义模板

 

模板参数


最好的方法是:

 

安装的盘符:/Program Files/Microsoft Visual Studio 8/Common7/IDE/ItemTemplatesCache/Web/CSharp/2052 这个文件夹中相应的文件

 

 

$year$  年

$time$ 年月日时间

$safeitemrootname$ 文件名

$codebesideclassname$ 类名

==============================================================================

http://msdn.microsoft.com/en-us/library/eehb4faa(v=vs.80).aspx   vs2005模板参数

http://msdn.microsoft.com/en-us/library/eehb4faa(v=vs.90).aspx    vs2008模板参数

 
例子:


//======================================================================
//版权信息
//Copyright (C) $year$ ARTM
//All rights reserved

//Filename :$safeitemrootname$
//Created by chens at $time$
//Description :
//======================================================================

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:javascript 中的Boolean类型Next article:Python 操作 Redis