posts - 16 , comments - 4 , trackbacks - 0

Visual Studio makes 1 feature per list

I'm running into an odd problem with Visual Studio 2013 (Update 3) and SharePoint 2013. I created a Sandboxed solution for SharePoint 2013. I then right-clicked on the solution 7 times and selected to add a new List each time. VS created a new feature for each list. I deleted all but the first feature and added each list to that feature, so the end result was 1 feature with 7 list definitions and 7 list instances.

Builds and deploys just fine.

I then closed the solution and opened it again. VS created 6 new features and put 1 list definition and list instance in each feature. Is there a way for me to put all of my list definitions and instances into a single feature?

I think I found a solution. What I needed to do was to change the template type from the default of 100 to something else. I changed mine to 10000 for the first list definition and then changed the template type to 10001 for the second list definition. The second list definition was automatically added to the same feature as the first. Hope this helps




Print | posted on Thursday, June 18, 2015 10:38 PM | Filed Under [ feature visual studio package sharepoint list definition sharepoint library ]


No comments posted yet.
Post A Comment

Powered by: