Share via


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. Select one or more items in the Items in the Solution list.

  3. Click the Add button (>) to add selected items, or click the Add All button (>>) to add all items.

  4. or

  5. Double-click an item to move it to the other list. For example, you can double-click an item in the Items in the Solution list to move 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

  1. Highlight one or more items in the Items in the Package list.

  2. Click the Remove button (<) to remove selected items, or click 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

How to: Create a SharePoint Solution Package in Visual Studio

Other Resources

Creating SharePoint Solution Packages

How to: Modify Package Properties