Question

I imported a WSP that was in the gallery (put in there by the old developer) into a new studio wsp import project. It looks really noisy (too much stuff that we don't even use when creating a site using this wsp). If I open the wsp (the cab file) and see the files I notice there aren't that many files in there.

How can I create a wsp for just these files?

Was it helpful?

Solution

It sounds like that the WSP you have there is the result of one choosing the "Save site as template" option in SharePoint 2010.

This creates a WSP with a single Elements file that contains one hell of a lot of information, including a sort of Site definition.

You will be able to poke through this file and extract the elements you required into separate Element files in a new Visual Studio Project as you see fit. This is a recommended approach.

The Import WSP file just does not work properly when you import WSPs that were created with the "Save site as a template" option. You have no further benefit than if you renamed to .cab, extracted then opened the resulting files in Notepad.

Does the WSP contain the workflow defnition element in there somewhere? If you say it comes with one, it should be in there somewhere. If the workflow came with a binary assembly you'll also be able to extract it and include it in your new Visual Studio 2010 project.

OTHER TIPS

kind of doing something similar...when I import my wsp (generated from a save as site template) I have chosen the few items that i want but the most important part i want is the worflow itself but i can see that anywhere?

I can see the workflow associations but not the workflow itself...wierd am I doing something wrong?

S

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top