Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Packaging multiple features into a single WSP solution file

I am working on a sharepoint feature which includes a couple of list definitions, 2 webparts, a feature receiver assembly and an InfoPath form.

I have to use WSPBuilder to package these, and the requirement is to package all these features into a single WSP solution file.

Now, WSP builder requires the deployment files in a particular folder structure, same as the 12 Hive of sharepoint.

My problem is that all my features were developed separately, and consist of multiple project files, and these are not necessarily in the same folder structure..

How do I use WSP Builder to package multiple features into a single WSP solution?

like image 512
ashwnacharya Avatar asked Dec 08 '25 13:12

ashwnacharya


2 Answers

Maybe this will help: http://www.codeplex.com/wspbuilder/Thread/View.aspx?ThreadId=43125

Ultimately, I think you gain a lot of flexibility by building your own wsp files by using a tool like NANT.

like image 114
Jason Avatar answered Dec 11 '25 22:12

Jason


There's no particular action you need to undertake in wspbuilder to have multiple features in the same solution package. All you need to do is create a new folder for each feature under the 12\TEMPLATE\FEATURES folder inside your solution in Visual Studio and place the appropriate feature.xml file in that folder. For example, you may have:

12\TEMPLATE\FEATURES\FancyFeature\feature.xml 12\TEMPLATE\FEATURES\ReallyCoolFeature\feature.xml

... and so on.

Upon building the solution, wspbuilder will read the entire tree structure of your 12 folder and append the corresponding nodes in the wsp's manifest.xml file. The same goes for any other possible subfolders inside the "TEMPLATE" folder, including IMAGES, LAYOUTS, etc: at deployment time they will all be copied in the correct folder inside the real 12 hive, because the 12 folder inside your solution is meant to be a replica of the original one.

For a better understanding, create some folders and files inside your 12 folder in the visual studio solution, compile your project and look inside the generated manifest.xml file.

like image 33
Tudor Olariu Avatar answered Dec 11 '25 20:12

Tudor Olariu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!