Custom files in DesignerTemplates

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top