How to use WSPBuilder for Creating a List Instance in MOSS

No.of Views3144
Bookmarked0 times
Downloads 
Votes0
By  amalhashim   On  02 Nov 2010 10:11:11
Tag : SharePoint , Development and Programming
I am going to explain how we can make use of WSPBuilder for creating a List instance.
emailbookmarkadd commentsprint

Images in this article missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at info@codegain.com

 

Introduction

In article 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
http://download.microsoft.com/download/4/0/b/40b62080-6295-4d63-b396-d779fb9b4449/VSeWSSv12.exe
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   

Image Loading

Select List Definition and click on Next button

Image Loading

 Specify the Site Url where the list is present and click Next 

Image Loading

Select the List and click Next

Image Loading

 Provide a project name and path, then click Next

Image Loading

 Click Finish

Image Loading

 Before clicking Exit, click “Click here to open the generated solution” and click Exit 

Image Loading

You can see the “Configurations” folder. Let it be opened. Now open visual studio and create a WSPBuilder project  

Image Loading

Once the project is created, add a new blank feature 

Image Loading

Now, copy the folder "Configurations" and paste it under the feature folder as shown below

Image Loading

Open the ListDefinition.xml file and copy the following content

Image Loading

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

Image Loading

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!!!

 
Sign Up to vote for this article
 
About Author
 
amalhashim
Occupation-Software Engineer
Company-Aditi Technologies
Member Type-Senior
Location-Not Provided
Joined date-07 Jun 2009
Home Page-http://lamahashim.blogspot.com
Blog Page-http://lamahashim.blogspot.com
I have done my masters in Computer Applications and graduation in Computer Science. I have great passion in working with Microsoft tool and technologies. I am also a Microsoft Most Valuable Professional. Personally my objective is to design/develop applications which eases user experience and performs better in long run.
 
 
Other popularSectionarticles
Comments
By:chakravarthyDate Of Posted:1/26/2011 6:01:32 AM
how to get infopath coding examples
plz sir plz help me and send any coding sites
Leave a Reply
Title:
Display Name:
Email:
(not display in page for the security purphase)
Website:
Message:
Please refresh your screen using Ctrl+F5
If you can't read this number refresh your screen
Please input the anti-spam code that you can read in the image.
^ Scroll to Top