C
Carole MacDonald
Is there a way to add custom files to VC#\DesignerTemplates\1033 ? I
want modified versions of NewGlobalAppCode.cs and NewWebServiceCode.cs
for a custom new project template that I've created. I don't want to
modify the originals so that other project types can still get the
real version.
From walking through the code, the default.js file in the new project
template calls
AddDesignerFileToCSharpWebProject(proj, strProjectName,
strProjectPath, "Global.asax", false);
in common.js. It looks like the files actually get created in the
call
var projfile = projItems.AddFromTemplate(strTemplate, strTarget);
Nowhere does the code actually specify NewGlobalAppCode.cs. I can
only assume that it takes the extension (.asax) and uses that to
determine which template to use. So is there a way to use a different
template file for certain projects?
Thanks,
Carole
want modified versions of NewGlobalAppCode.cs and NewWebServiceCode.cs
for a custom new project template that I've created. I don't want to
modify the originals so that other project types can still get the
real version.
From walking through the code, the default.js file in the new project
template calls
AddDesignerFileToCSharpWebProject(proj, strProjectName,
strProjectPath, "Global.asax", false);
in common.js. It looks like the files actually get created in the
call
var projfile = projItems.AddFromTemplate(strTemplate, strTarget);
Nowhere does the code actually specify NewGlobalAppCode.cs. I can
only assume that it takes the extension (.asax) and uses that to
determine which template to use. So is there a way to use a different
template file for certain projects?
Thanks,
Carole