Assembly element (Solution - Assemblies)

Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013

Specifies an assembly to include in the solution.

  DeploymentTarget = "GlobalAssemblyCache" | "WebApplication"
  Location = "Text">

Elements and attributes

The following sections describe attributes, child elements, and parent elements.


Attribute Description
Optional Text. The preferred target of deployment of the assembly. The assembly is copied to the target specified by the DeploymentTarget attribute (for a Web application) or the global assembly cache (for a server farm).

Possible values:
- GlobalAssemblyCache If the assembly is a farm feature, it is copied to the global assembly cache.
- WebApplication If the assembly is a Web application feature, it is copied to the virtual server bin directory.
Required Text. The relative file path of the assembly.

Child elements

Parent elements


For an example of how this element is used, see Solution schema.