Domanda

As part of a migration from SharePoint 2007 to 2010, I am cleaning up old features that are no longer used and/or would have compatibility issues with the upgrade - mainly the old FAB40 templates. To do this cleanly, I am following the instructions from this blog post - deactivating and then deleting the feature before then retracting and removing the solution. By doing the first two steps I can ensure that I am not using the feature somewhere in the farm still, which would otherwise create issues with missing content.

However, it isn't always clear what features are part of a solution. Is there a way to get a list of features used, or deployed with, each solution package?

È stato utile?

Soluzione

I'm assuming you are doing this in your 2007 environment before you upgrade. I'm not sure if there is an easier way such as quering the database or an stsadm command, but this should help.

  1. This code will export the solutions installed in the farm as WSP files.

    SPSolutionCollection solutions = SPFarm.Local.Solutions;
    foreach (SPSolution solution in solutions)
    {
        solution.SolutionFile.SaveAs(solution.SolutionFile.Name);
    }
    
  2. Rename the exported WSP files to add a ".cab" extension

  3. Extract all the files from .cab file

  4. Browse the extracted files to see which features are part of the solution

Altri suggerimenti

I guess if you are not decompiling, or have the source, you have to ask the Author.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top