How to: Add and Remove Features and Items to a Package by Using the Package Designer

When you create a SharePoint solution, Visual Studio adds the default SharePoint Features to the package in the solution. Before final deployment, you can add and remove SharePoint project items and Features to modify the SharePoint package.

Alternatively, you can use the Packaging Explorer to add and remove SharePoint project items. You can also view and change the hierarchy of the SharePoint project items and Features that are put into the package (.wsp). For more information, see How to: Add and Remove Features and Items to a Package by Using the Packaging Explorer.

Adding Features to a SharePoint Package

You can use the Package Designer to add Features to a SharePoint package.

To add SharePoint Features with the Package Designer

  1. Open the Package Designer.

    For more information, see How to: Customize a SharePoint Solution Package.

  2. Add one or more SharePoint Features by performing one or more of the following steps:

    1. Double-click each item in the Items in the Solution list that you want to add.

    2. Choose an item that you want to add, and then choose the Add button (>).

    3. Choose the Add All button (>>) to add all items at once.

    For example, you can double-click an item in the Items in the Solution list to add it to the Items in the Package list.

    The SharePoint Project Items and Features appear in the Items in the Package list.

Removing Features from a SharePoint Package

You can use the Package Designer to remove Features to a SharePoint package.

To remove SharePoint Features with the Package Designer

  • In the Items in the Package list, choose an item that you want to remove, and then choose the Remove (<) button, or choose the Remove All button (<<) to remove all the items.

    The SharePoint Items appear in the Items in the Solution list.

See Also

Tasks

How to: Customize a SharePoint Solution Package

Other Resources

Creating SharePoint Solution Packages

How to: Modify Package Properties

How to: Create a Package