How to: Add and Remove Features and Items to a Package by Using the Packaging Explorer
To configure a package to deploy SharePoint items and Features, you can use the Packaging Explorer. You can adjust the SharePoint project items and Features inside your .wsp file.
Alternatively, you can use the Packaging Designer to view and re-order the Features to change the activation order. For more information, see How to: Add and Remove Features and Items to a Package by Using the Package Designer.
You can use the following procedure to open the Packaging Explorer, if your Visual Studio solution has at least one SharePoint project. Alternatively, the Packaging Explorer opens automatically when you view a Feature or package designer. After you close all Feature and package designers, the Packaging Explorer also closes.
On the menu bar, choose View, Other Windows, Packaging Explorer.
The Packaging Explorer appears in the Toolbox.
You can add new and existing Features to a Package by using the Packaging Explorer.
- Open the Packaging Explorer, open the shortcut menu for the project, and then choose Add Feature.
Open the Packaging Explorer, and then perform one of the following steps:
Drag a Feature from one project to another project.
Open the shortcut menu for a Feature, choose Cut, open the shortcut menu for the project to which you want to move the Feature, and then choose Paste.
Use this procedure if you have more than one SharePoint project in your solution.
You can identify potential problems in the SharePoint Features and packages by validating the files. Warnings and errors are displayed in the Output window and Error List window.
Open the Packaging Explorer.
Open a shortcut menu for a Feature or package, and then choose Validate.