How to: Add and remove features and items to a package by using the Package Designer
Applies to: Visual Studio Visual Studio for Mac
Note
This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
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.
Add 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
Open the Package Designer.
For more information, see How to: Customize a SharePoint solution package.
Add one or more SharePoint Features by performing one or more of the following steps:
Double-click each item in the Items in the Solution list that you want to add.
Choose an item that you want to add, and then choose the Add button (>).
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.
Remove 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.