一
C:\Program Files\Microsoft Visual Studio
其下的NewWebFormCode
C:\Program Files\Microsoft Visual Studio
其下的\Scripts\
其下的\Templates\
其下的\Templates\
C:\Program Files\Microsoft Visual Studio
其下的ui
二
建立VC#文件夾
VC#\CSharpProjectItems \WebProjectItems\Itabby界面模板\
ItabbyAddCommonFormWiz
VSWIZARD
Wizard=VsWizard
Param=
Param=
Param=
ui
ItabbyAddCommonFormWiz
VC#\DesignerTemplates\
NewWebFormCode
VC#\VC#Wizards\ItabbyAddCommonFormWiz\Scripts\
default
VC#\VC#Wizards\ItabbyAddCommonFormWiz\Templates\
ItabbyWebForm
Templates
ItabbyWebForm
三
CSharpProjectItems
webProjectItems
Itabby界面模板
ItabbyAddCommonFormWiz
內容:
VSWIZARD
Wizard=VsWizard
Param=
Param=
Param=
說明:上述代碼修改自微軟:\CSharpProjectItems\WCSharpAddWebFormWiz
VSWIZARD
Wizard=VsWizard
Param=
Param=
Param=
ui
內容:
ItabbyAddCommonFormWiz
說明:
上述代碼修改自微軟:\CSharpProjectItems\WebProjectItems\UI\ui
DesignerTemplates
NewWebFormCode
內容:
$NAMESPACE$ //微軟自動處理
$CLASSNAME$ //微軟自動處理
VC#Wizards
ItabbyAddCommonFormWiz
Scripts
default
內容:
// (c) Microsoft Corporation
function AddDefaultServerScriptToWizard(selProj)
{
wizard
}
function AddDefaultClientScriptToWizard(selProj)
{
var prjScriptLang = selProj
//
//
if(prjScriptLang ==
{
wizard
}
else
{
wizard
}
}
function AddDefaultDefaultHTMLPageLayoutToWizard(selProj)
{
var prjPageLayout = selProj
//
//
if(prjPageLayout ==
{
wizard
}
else
{
wizard
}
}
function OnFinish(selProj
{
var oldSuppressUIValue = true;
try
{
oldSuppressUIValue = dte
var strProjectName = wizard
var strSafeProjectName = CreateSafeName(strProjectName);
wizard
SetTargetFullPath(selObj);
var strProjectPath = wizard
var strTemplatePath = wizard
//用戶自定義代碼開始
var strPaths = strProjectPath
var curResPath =
var bFindModules = false;
for(index = strPaths
{
if(strPaths[index]==
{
bFindModules = true;
break;
}
curResPath +=
}
if(bFindModules==false)
curResPath =
var curJsPath = curResPath +
var curCssPath = curResPath +
var curImgPath = curResPath +
var curctlPath = curResPath +
wizard
wizard
wizard
wizard
//用戶自定義代碼結束
var strTpl =
var strName =
var InfFile = CreateInfFile();
// add the default project props for the aspx file before we
// render it
AddDefaultServerScriptToWizard(selProj);
AddDefaultClientScriptToWizard(selProj);
AddDefaultTargetSchemaToWizard(selProj);
AddDefaultDefaultHTMLPageLayoutToWizard(selProj);
// render our file
AddFilesToCSharpProject(selObj
AddReferencesForWebForm(selProj);
}
catch(e)
{
if( e
SetErrorInfo(e);
return e
}
finally
{
dte
if( InfFile )
InfFile
}
}
function SetFileProperties(oFileItem
{
if(strFileName ==
{
oFileItem
}
}
說明:上述修改自微軟:\VC#\VC#Wizards\CSharpAddWebFormWiz\Scripts\
Templates
ItabbyWebForm
內容:
<%@ Page language=
<!DOCTYPE HTML PUBLIC
<html>
<head>
<title>平紋科技</title>
<meta content=
<meta content=
<meta content=
<meta content=
<meta content=
<META http
<meta name=vs_defaultClientScript content=
<meta name=vs_targetSchema content=
<LINK [!output _fcksavedurl=
<script src=
</head>
Templates
內容:
ItabbyWebForm
說明
WebForm
四
模板的定制主要以修改\VC#\VC#Wizards\ItabbyAddCommonFormWiz\Templates\
\VC#\VC#Wizards\ItabbyAddCommonFormWiz\Scripts\
\VC#\CSharpProjectItems\WebProjectItems\Itabby界面模板\ItabbyAddCommonFormWiz
From:http://tw.wingwit.com/Article/program/net/201311/12106.html