• USA : +1 973 910 5725
  • INDIA: +91 905 291 3388
  • info@tekslate.com
  • Login

How to Add and Remove Items to SharePoint Features &

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.

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.

Interested in mastering SharePoint Training? Enroll now for FREE demo on SharePoint Training Online.

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 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 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 Indepth understanding of SharePoint click on

 

Summary
Review Date
Reviewed Item
How to Add and Remove Items to SharePoint Features & Dependencies
Author Rating
5

“At TekSlate, we are trying to create high quality tutorials and articles, if you think any information is incorrect or want to add anything to the article, please feel free to get in touch with us at info@tekslate.com, we will update the article in 24 hours.”

0 Responses on How to Add and Remove Items to SharePoint Features & Dependencies"

    Leave a Message

    Your email address will not be published. Required fields are marked *

    Site Disclaimer, Copyright © 2016 - All Rights Reserved.

    Support


    Please leave a message and we'll get back to you soon.

    I agree to be contacted via e-mail.