SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If anyone knows I want to know how to make picture library in site definition? Thanks in advance.

share|improve this question

You can do it in 2 ways:

  1. Add a new feature (Feature_1) & add a receiver code to create a library (if already not present) of type picture library (you will be giving the list type here)


  1. Add a list instance based on the picture library template ID (you can find the template ID of all OOB lists in google search). Wrap this in a feature (Feature_2)

Now, you can use either of the above feature's reference in your Onet.xml under required SCOPE.

share|improve this answer
I want to make it from ListDefinition & ListInstance as we used for making custom list & document library. – Harsh Bhavsar Mar 15 '13 at 12:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.