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
Why do people prefer manual cars?
How Much Money Can I Make With an AI Trading Bot? | One Click Crypto Blog
Lowe's Garden Fence Roll
Ohio Houses With Land for Sale - 1,591 Properties
Walgreens Pharmqcy
Mcgeorge Academic Calendar
Stretchmark Camouflage Highland Park
Phcs Medishare Provider Portal
Craigslist Cars And Trucks For Sale By Owner Indianapolis
Ingles Weekly Ad Lilburn Ga
Coffman Memorial Union | U of M Bookstores
Songkick Detroit
Erskine Plus Portal
David Packouz Girlfriend
How To Delete Bravodate Account
Transfer Credits Uncc
Craigslist List Albuquerque: Your Ultimate Guide to Buying, Selling, and Finding Everything - First Republic Craigslist
Diesel Mechanic Jobs Near Me Hiring
fort smith farm & garden - craigslist
Apply for a credit card
Att.com/Myatt.
Https Paperlesspay Talx Com Boydgaming
Parc Soleil Drowning
Ecampus Scps Login
University Of Michigan Paging System
4 Methods to Fix “Vortex Mods Cannot Be Deployed” Issue - MiniTool Partition Wizard
Jersey Shore Subreddit
Login.castlebranch.com
Superhot Free Online Game Unblocked
Toonkor211
Alternatieven - Acteamo - WebCatalog
Ff14 Laws Order
Vlocity Clm
Att U Verse Outage Map
Blackstone Launchpad Ucf
Gas Prices In Henderson Kentucky
Craigslist In Myrtle Beach
Joe's Truck Accessories Summerville South Carolina
What Are Digital Kitchens & How Can They Work for Foodservice
Craigs List Stockton
Is Arnold Swansinger Married
Hebrew Bible: Torah, Prophets and Writings | My Jewish Learning
Final Fantasy 7 Remake Nexus
Invalleerkracht [Gratis] voorbeelden van sollicitatiebrieven & expert tips
Swoop Amazon S3
Ouhsc Qualtrics
Plasma Donation Greensburg Pa
Rocket Bot Royale Unblocked Games 66
Koniec veľkorysých plánov. Prestížna LEAF Academy mení adresu, masívny kampus nepostaví
Scholar Dollar Nmsu
Salem witch trials - Hysteria, Accusations, Executions
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.