SharePoint Feature To Install A List And Create Instance Of It

Here is an example of a SharePoint feature which adds a new List definition to the site and then creates an instance of it.

File structure in your project
12


 * TEMPLATES


 * MyFeatureName


 * MyListName - this can be extracted with SharePoint Solution Generator 2008


 * AllItems.aspx


 * DispForm.aspx


 * EditForm.aspx


 * instance.xml


 * ListDefinition.xml


 * NewForm.aspx


 * schema.xml


 * feature.xml

feature.xml
      

ListDefinition.xml
   

instance.xml
    