Building the Project Site Template
The Project Site Template will be added to a new project named SPBlueprints.WebTemplates
. This project can contain multiple templates as well as any site configuration solutions.
Create the project
To create the initial project:
1. Open Visual Studio 2010.
2. Select File, then New Project.
3. Browse the installed templates and select Visual C# | SharePoint 2010, and then Empty SharePoint Project.
4. Enter the project details such as Name, Location, and Solution name.
5. Within the SharePoint Customization Wizard, provide a path to your SharePoint site and then be sure to select the option to Deploy as a farm solution.
6. Right-click on the project file and select Add then New Item.
7. From the template selection screen select the Empty Element option
8. Provide the name ProjectTemplate and click on the Add button.
Create the ProjectTemplate WebTemplate
A web template SPI includes two main artifacts; the Elements.xml
and the Onet.xml
files.
Complete Elements.xml
As...