Remove the assembly reference from your Sandbox solution created in Visual Studio

INTRODUCTION
By default, the Visual Studio 2015 and 2013 templates for SharePoint Sandbox solutions automatically include an assembly-to-Sandbox solution file (wsp). This is true regardless of whether you have added any actual code in the solution. This process can be controlled by the Include Assembly In Package setting in the Visual Studio Project Properties view. The default value for this property is True. If you have created your Sandbox solution in Visual Studio and it doesn’t contain actual code, you should change this setting to False. This makes sure that your Sandbox solution is fully declarative and doesn’t contain any actual code.
PROCEDURE
To change an existing Sandbox solution that's created in Visual Studio, follow these steps:

  1. Open the existing Visual Studio project for the Sandbox solution.
  2. Open the Properties dialog box for the project. To do this, open the Visual Studio project in Solution Explorer, and then press the F4 key.
  3. Locate and change the Include Assembly In Package property setting to False.

    Property Window of Visual Studio
  4. Recompile and then publish the new version of the Sandbox solution.
More information
For more information, see the following Microsoft website: Removing Code-Based Sandbox Solutions in SharePoint Online.

Still need help? Go to the Office 365 Community website.
Properties

Article ID: 3183084 - Last Review: 08/06/2016 00:16:00 - Revision: 3.0

Microsoft SharePoint Online

  • o365 o365e o365p o365a o365m o365022013 kbgraphxlink KB3183084
Feedback