Add and Remove Additional Assemblies - Visual Studio (Windows) (2024)

  • Article

If a SharePoint package depends on other assemblies for functionality or data, you can add the assemblies to your solution package (.wsp). This way, the SharePoint server makes sure that custom assemblies are installed with a package.

You can also add and change the safe controls and class resource files associated with the assemblies.

Add additional assemblies, safe controls, and class resources

You can add additional assemblies into the SharePoint solution package. Additional assemblies in a sandboxed solution deploy to the global assembly cache, but SharePoint project items in a sandboxed solution are added to the content database. You can also add safe controls and class resources to these additional assemblies. For more information about safe controls, see Providing Packaging and Deployment Information in Project Items or "Creating a SafeControl Entry" in Deploying Web Parts in SharePoint Foundation.

To add an existing assembly

  1. Open the Package Designer. For more information, see How to: Customize a SharePoint Solution Package.

  2. Choose the Advanced tab.

  3. Choose the Add button, and then choose Add Existing Assembly from the list.

    The Add Existing Assembly dialog box appears.

  4. Choose the ellipsis (Add and Remove Additional Assemblies - Visual Studio (Windows) (1)), and then choose the assembly that you want to add. We recommend using a relative path to the selected assembly for portability purposes.

  5. For the Deployment Target, choose the GlobalAssemblyCache option button to deploy the assembly to the global assembly cache, or choose the WebApplication option button to deploy the assembly to the WebApplication folder on the server that's running SharePoint.

To add an assembly from project output

  1. Open the Package Designer.

    For more information, see How to: Customize a SharePoint solution package.

  2. Choose the Advanced tab.

  3. Choose the Add button, and then choose Add Assembly from Project Output from the list.

    The Add Assembly from Project Output dialog box appears.

  4. In the Source Project list, and choose the source project that you want to add.

  5. For the Deployment Target, choose the GlobalAssemblyCache option button to deploy the assembly to the global assembly cache, or choose the WebApplication option button to deploy the assembly to the WebApplication folder on the server that's running SharePoint.

To add a safe control

  1. Open the Edit Existing Assembly dialog box. To accomplish this, open the Package Designer, choose the Advanced tab, choose an assembly, and then choose the Edit button.

  2. In the Safe Controls pane, choose the Click here to add a new item button.

  3. In the Assembly Name column, enter the name of the assembly.

  4. In the Namespace column, enter the name of the namespace for the safe control.

  5. In the Type Name column, enter the name of the type.

To add a class resource

  1. Open the Edit Existing Assembly dialog box. To accomplish this, open the Package Designer, choose the Advanced tab, choose an assembly, and then choose the Edit button.

  2. In the Class Resources pane, choose the Click here to add a new item button.

  3. In the File Name column, choose the ellipsis (Add and Remove Additional Assemblies - Visual Studio (Windows) (2)), and choose the class resource that you want to add.

Delete custom assemblies

You can delete assemblies from a SharePoint package, or delete safe controls and class resources from existing assemblies.

To delete an existing assembly

  1. Open the Package Designer. For more information, see How to: Customize a SharePoint solution package.

  2. Choose the Advanced tab.

  3. In the Additional Assemblies pane, choose the custom assembly that you want to delete.

  4. Choose the Delete button.

To delete a safe control for an assembly

  1. Open the Edit Existing Assembly dialog box. To accomplish this, open the Package Designer, choose the Advanced tab, choose an assembly, and then choose the Edit button.

  2. Choose the safe control that you want to delete.

  3. Choose the Delete key.

To delete a class resource for an assembly

  1. Open the Edit Existing Assembly dialog box. To accomplish this, open the Package Designer, choose the Advanced tab, choose an assembly, and then choose the Edit button.

  2. Choose the class resource that you want to delete.

  3. Choose the Delete key.

Related content

Add and Remove Additional Assemblies - Visual Studio (Windows) (2024)
Top Articles
US Dollar Peso Exchange Rate (USD MXN) - Historical Chart
How much ESA will I get if I claim PIP? Who's eligible and the difference, explained
Devon Lannigan Obituary
Live Basketball Scores Flashscore
Beacon Schnider
Z-Track Injection | Definition and Patient Education
What Was D-Day Weegy
Jesus Revolution Showtimes Near Chisholm Trail 8
Mikayla Campinos Videos: A Deep Dive Into The Rising Star
Erskine Plus Portal
Phillies Espn Schedule
Pittsburgh Ultra Advanced Stain And Sealant Color Chart
The Superhuman Guide to Twitter Advanced Search: 23 Hidden Ways to Use Advanced Search for Marketing and Sales
Craigslist Blackshear Ga
Bfg Straap Dead Photo Graphic
Youravon Comcom
State HOF Adds 25 More Players
Spergo Net Worth 2022
Mals Crazy Crab
Vipleaguenba
18889183540
Clare Briggs Guzman
Used Safari Condo Alto R1723 For Sale
Plost Dental
Is Holly Warlick Married To Susan Patton
2011 Hyundai Sonata 2 4 Serpentine Belt Diagram
Dal Tadka Recipe - Punjabi Dhaba Style
2487872771
Rubmaps H
Warren County Skyward
Craigslist Free Puppy
Song That Goes Yeah Yeah Yeah Yeah Sounds Like Mgmt
Craigslist Hamilton Al
Jefferson Parish Dump Wall Blvd
Reborn Rich Ep 12 Eng Sub
The Blackening Showtimes Near Regal Edwards Santa Maria & Rpx
The Syracuse Journal-Democrat from Syracuse, Nebraska
دانلود سریال خاندان اژدها دیجی موویز
Troy Gamefarm Prices
Prior Authorization Requirements for Health Insurance Marketplace
Riverton Wyoming Craigslist
Danielle Ranslow Obituary
Nail Salon Open On Monday Near Me
At Home Hourly Pay
Kutty Movie Net
Sarahbustani Boobs
Arnesons Webcam
Dancing Bear - House Party! ID ? Brunette in hardcore action
Wood River, IL Homes for Sale & Real Estate
FactoryEye | Enabling data-driven smart manufacturing
Tamilyogi Cc
Latest Posts
Article information

Author: Lilliana Bartoletti

Last Updated:

Views: 6183

Rating: 4.2 / 5 (53 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Lilliana Bartoletti

Birthday: 1999-11-18

Address: 58866 Tricia Spurs, North Melvinberg, HI 91346-3774

Phone: +50616620367928

Job: Real-Estate Liaison

Hobby: Graffiti, Astronomy, Handball, Magic, Origami, Fashion, Foreign language learning

Introduction: My name is Lilliana Bartoletti, I am a adventurous, pleasant, shiny, beautiful, handsome, zealous, tasty person who loves writing and wants to share my knowledge and understanding with you.