Itβs much easier there. You can use the same wizard that VS uses to create composite elements. You do this by adding an element at the end of your template, after <TemplateContent> ...
<WizardExtension> <Assembly>Microsoft.VisualStudio.Web.Application, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly> <FullClassName>Microsoft.VisualStudio.Web.Application.WATemplateWizard</FullClassName> </WizardExtension>
Then you need to tell the wizard the parent extension and the extension of the children ...
<CustomParameters> <CustomParameter Name="$ParentExtension$" Value=".xaml"/> <CustomParameter Name="$ChildExtension$" Value=".cs"/> </CustomParameters>
This element goes inside the <TemplateContent>.
This solution is tested and works in VS2012, and you can see the version that is hard-coded when the wizard is called. If you have version problems, find the webform.vstemplate file (visual studio .aspx template) and inspire yourself.
source share