How to create a Visual Studio 2008 Web Form Template



Sometimes it may be useful to create a new development project froma pre-created web form project. Instead of copying and pasting a previous web form and modifying it to the new requirements, you can have a Web Form Project Template in Visual Studio 2008 which contains a base of files which will always be needed in all (or some)new web form projects (i.e.: WorkflowGen.My.dll, logos, style sheets, etc). This can help with standardization of your corporate templates.


To create a custom web form project template you can use the Export Template wizard in Visual Studio 2008.

  1. Create a project.
  2. Edit the project until it is ready to be exported as a template.
  3. On the File menu, click Export Template. The Export Template wizard opens.
  4. Click Project Template.
  5. If you have more than one project in your current solution, select the project you want to export to a template.
  6. Select the type of template that you want to create.
  7. Click Next.
  8. Select an icon for your template. This icon will appear in the New Project dialog box.
  9. Enter a template name and description.
  10. Click Finish. Your project is exported into a .zip file and placed in the specified output location, and, if selected, imported into Visual Studio.
  11. The next time you create a new web site or project, you will see the new template you created!