IDE: Visual Studio 2010
Language: C #
SharePoint version: 2010
1): Create a sitedefinition project.
2): Change the ID of sitedefinition.
Expand the sitedefinition node, find the webtemp _ $ projectname $. xml file, open it, and change the ID of the template node to another one (the ID of the current sitedefinition in exchange cannot be repeated or an error will be reported)
3): Customize something
Expand the sitedefinition node, find default. aspx, open it, and modify content1
Hello world!
<ASP:ContentID= "Content1"Contentplaceholderid= "Placeholdermain"Runat= "Server"> <H1>Hello world!</H1> </ASP:Content>
4): release it.
5): Create a site collection (website set) in SharePoint and select the template we just created. (if not, select the language above the template as English), or find webtemp _ $ projectname $ under the sitedefinition node in the project. right-click XML and select attribute (F4). In the open attribute panel, expand deploy location and change path to 2052 \ XML \ (1033 English and 2052 Chinese by default, for other languages, see lcid ).
Create a website (http: // xxxxxxxxxx: 1111/sites/xxxtest) and open the website.
Created successfully.