In this post I am going to explain how we can make use of WSPBuilder for creating a List instance.
First we need to install SharePoint Solution Generator. You can download the same from here
Now follow the steps for generating List Definition. Here I am going to create a List Definition of a List named “Configurations”
Start SharePoint solution generator
Select List Definition and click on Next button
Specify the Site Url where the list is present and click Next
Select the List and click Next
Provide a project name and path, then click Next
Before clicking Exit, click “Click here to open the generated solution” and click Exit
You can see the “Configurations” folder. Let it be opened. Now open visual studio and create a WSPBuilder project
Once the project is created, add a new blank feature
Now, copy the folder “Configurations” and paste it under the feature folder as shown below
Open the ListDefinition.xml file and copy the following content
Once the content is copied, paste it in the elements.xml file as shown below and delete the file "ListDefinition.xml" from visual studion project
You can also see ListInstance, make a similar entry in your elements.xml file. Also replace the FeatureId with the FeatureId specified in the feature.xml file
Now build the wsp, deploy it and activate the feature. This will add the list to the site.
Hope this was helpful!!!