Reputation: 21630
I'm working on a Sharepoint 2010 project that has quite a few visual webparts.
Currently I have all web parts in the same solution. My colleague is working on the same project, but is creating a project for each web part inside the solution.
What's the best practice here? What are the advantages/disadvantages of each approach?
thanks.
Upvotes: 3
Views: 2838
Reputation: 1584
I tested both approaches when I started developing Sharepoint solutions and I conclude the following Pros / Cons:
Pros of having separate project for every webpart:
I hope that's enough to let you enjoy the Webpart per project appreach.
Upvotes: 6
Reputation: 22701
If its a big project, a seperate project for each webpart could be an overkill. Unless there is a good reason (such as deployment), all should be in same project.
Upvotes: 0
Reputation: 24561
It is about deployment. A single project results in a single wsp file, so if you want to deploy all web parts together, stick to the single project. Otherwise, split them up as appropriate.
Upvotes: 1
Reputation: 1193
All in one project unless there's a good reason to break them out (i.e. they need to be delivered separately).
Upvotes: 2