pchel
pchel

Reputation: 31

Make changes in wsp file programmatically

What I currently need is to programmatically make certain changes in existing wsp file. Most likely wsp file will be created using "Save site as template" SharePoint action - and I'll need to update it.

What api/approach would you recommend to accomplish this task? Please note that .NET C# is mandatory. Some approaches/questions I could see now:

  1. Do you guys know some 3rd party tool allowing "friendly" object model to work with WSP files? I could not find one.
  2. Do you know is there any special assemblies that could be used for this in WSPBuilder or Visual Studio 2010?
  3. What CAB tool would you recommend? Because it seems there are not so much .NET solutions to work with CAB files.

Upvotes: 2

Views: 1731

Answers (1)

Madhur Ahuja
Madhur Ahuja

Reputation: 22709

You can use cablib.dll . Its the same API library which the WSP BUilder uses.

Note that making changes like this programmatically is not recommended and by deploying it might put your server into unsupported mode.

http://www.codeproject.com/KB/files/CABCompressExtract.aspx

Upvotes: 2

Related Questions