开发者

Merging Sharepoint WSP solution files

开发者 https://www.devze.com 2022-12-18 21:04 出处:网络
I have multiple projects/wsp solutions for my different 开发者_如何学CSharepoint webparts and event receivers. This is fine for development, however I would like to merge the resulting .wsp files into

I have multiple projects/wsp solutions for my different 开发者_如何学CSharepoint webparts and event receivers. This is fine for development, however I would like to merge the resulting .wsp files into a single one for production deployment. Is there a way to do so? I am using vsewss 1.2 only.


This is going to be painful, but to really do this correctly for production pushes you should drop vsewss 1.2, re-organize your projects inside of Visual Studio and use WSPBuilder.

WSPBuilder is great because it takes a lot of the manual work out of creating manifest, ddf and compiling the CAB.


You are going to have to do a lot of the work that vsewss is doing in the background your self. there is a artical on MSDN about the basics on creating a WSP Creating a Solution Package in Windows SharePoint Services 3.0 A WSP is a cab file that contains a manifest.xml and a file structure, it is imortant that you place files in the right location in the WSP so they are deployed to the right location in SharePoint.

I agree with JD

This is going to be painful, but to really do this correctly for production pushes you should drop vsewss 1.2, re-organize your projects inside of Visual Studio and use WSPBuilder.

This would be a good time to restructure you code and assembly structure so as to minimise the number of assemblies you need to deploy.

If you have any Web Parts be sure to check that the Feature xml files are all corect as vsewss preparses and does text replacment befor generating its WSP files. It commanly stores a guid in the file where a full assembly name is requierd.

If you are going to be doing a lot of SharePoint dev work it is probly worth spending a bit of time learning how the manafest.xml and rest of the WSP packages work.


I haven't seen a tool which does this, but it shouldn't be hard to create:

  1. Unzip the wsp packages (They're just cab files with an odd extension)
  2. Merge the directory structures
  3. Merge the manifest.xml files
  4. Zip the combined package


There is an advantage to not having all your code in a single WSP.. you can do partial deployments and you don't have all your code in a single gigantic Visual Studio Solution.

Why don't you script all WSP deployments in 1 script file? It seems a far more transparent solution than fiddling with the WSP itself.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号