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


refrences:

http://stackoverflow.com/questions/27840245/visual-studio-makes-1-feature-per-list

https://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.splisttemplatetype.aspx

https://msdn.microsoft.com/en-us/library/office/ms462947(v=office.15).aspx

Thanks,

Musalaiah

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

Feedback

No comments posted yet.
Post A Comment
Title:
Name:
Email:
Comment:
Verification:
 

Powered by: