How to Add and Remove Items to SharePoint Features & Dependencies

Ratings:
(4)
Views:0
Banner-Img
  • Share this blog:

 

Add or Remove Items to SharePoint Features & Dependencies

When you create a SharePoint solution, Visual Studio adds the default SharePoint project items to your Feature. Before deployment, you can add and remove SharePoint project items to modify the SharePoint Feature. Adding SharePoint Project Items to a Feature To add SharePoint project items with the Feature Designer

  1. Open the Feature Designer. For more information, see How to: Customize a SharePoint Feature.
  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 Feature list.
Desired to gain proficiency on SharePoint? Explore the blog post on the "SharePoint Training" course to become a pro in SharePoint.

The SharePoint Project Items appear in the Items in the Feature list. Removing SharePoint Project Items from a Feature To remove SharePoint Items with the Feature Designer

  1. Select one or more items in the Items in the Feature list.
  2. Click the Remove button (<) to remove selected items, or click the Remove All button (<<) to remove all items.

The SharePoint Project Items appear in the Items in the Solution list.   -----------------> How to: Add and Remove Feature Dependencies Your SharePoint Feature may depend on other Features for functionality or data. In these cases, you can mark these other Features as dependencies for your Feature. This way, the SharePoint server ensures that dependent Features are activated before your Feature is activated. Adding Dependencies You can add other features in your solution as dependencies. This way, you can make sure that required Features are installed and activated before your feature is installed. To add a dependency on a Feature in the solution

  1. Open the Feature Designer.
  2. Click the arrow next to Feature Activation Dependencies.
  3. Click the Add button.

The Add Feature Activation Dependencies dialog box appears.

  1. Click Add a dependency on features in the solution.
  2. Click the title of the feature that you want to add as a dependency. For more than one feature, hold the CTRL-key and click several feature names.
  3. Click the Add button.

Adding Custom Dependencies You can add Features that are already deployed on a SharePoint server as a dependency. This way, the SharePoint activation process checks to make sure that all dependent Features are activated before your Feature is installed.

SharePoint Tutorial

To add a dependency by the Feature ID

  1. Open the Feature Designer.
  2. Click the arrow next to Feature Activation Dependencies.
  3. Click the Add button.

The Add Feature Activation Dependencies dialog box opens.

  1. Click Add a custom dependency.
  2. In the Feature ID text box, enter the GUID for the Feature that you want to mark as an activation dependency.
  3. Click the Add button.

Editing Custom Dependencies You can edit custom dependencies that you added previously. However, dependent Features that are in your solution can only be removed, not edited. To change dependency on a Feature in the solution

  1. Open the Feature Designer.
  2. Click the arrow next to Feature Activation Dependencies.
  3. Click the name of the feature that you want to remove.
  4. Click the Edit button.

The Edit Custom Feature Activation Dependency dialog box appears.

  1. Change the title, Feature ID, or description.
  2. Click Submit.

Removing Dependencies To remove a dependency on a Feature in the solution

  1. Open the Feature Designer.
  2. Click the arrow next to Feature Activation Dependencies.
  3. Click the name of the feature that you want to remove.
  4. Click the Remove button.

For an in-depth understanding of SharePoint click on:

 

About Author
Authorlogo
Name
TekSlate
Author Bio

TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.


Stay Updated


Get stories of change makers and innovators from the startup ecosystem in your inbox