0
votes

I have to use Microsoft Visual Studio 2012 with standard Sharepoint 2010 project templates.

When I try to create a simple sharepoint feature that has only one list inside itself, feature is published, imported, activated - but list I declared is missed in Sharepoint.

I can't figure out why my list is missed.

What I do step by step:

  1. MSVS. New Sharepoint 2010 project (Farmed solution)
  2. MSVS. Add net item - new Sharepoint List
  3. MSVS. Create a feature. Make sure that my list is inside feature
  4. MSVS. Publish project to wsp file locally
  5. SP. Import wsp. No error are found
  6. SP. Activate feature - feature is activated

There is no new custom list in Sharepoint after that.

I double checked that wsp file has standard schema.xml, elements.xml for my list.

What I do wrong?

1
Have you checked list templates gallery? Can you see you list template there?Yevgeniy.Chernobrivets
No, there isn't. What's interesting here - when I Deploy project to SP, it's deployed successfully and I can observe list in SPuser149691

1 Answers

0
votes

The problem seems to be in the order you are adding items to project.

Check that your list definition is in the feature definition. When you add list after the feature to project list will be added to feature automatically.

Also check that the feature is in solution.