Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Solution Schema

Published: May 2010

A solution manifest file defines the constituent parts of a solution, including its files, assemblies, code access security, Web Parts, Features, site definitions, and other resources.

Solution

  ActivationDependencies Element (Solution)

    ActivationDependency Element (Solution)

  ApplicationResourceFiles

    ApplicationResourceFile

  Assemblies

    Assembly

      SafeControls

        SafeControl

      ClassResources

        ClassResource

  CodeAccessSecurity

    PolicyItem

      PermissionSet

        IPermission

      Assemblies

        Assembly

  DwpFiles

    DwpFile

  FeatureManifests

    FeatureManifest

  Resources

    Resource

  RootFiles

    RootFile

  SiteDefinitionManifests

    SiteDefinitionManifest

      WebTempFile

  TemplateFiles

    TemplateFile

The following example shows a solution manifest file that includes declarations for Features, site definition files, and assemblies.

<Solution SolutionId="4AFC1350-F354-4439-B941-51377E845F2B" 
  xmlns="http://schemas.microsoft.com/sharepoint/">
  <FeatureManifests>
    <FeatureManifest Location="Calls\feature.xml"/>
    <FeatureManifest Location="ServiceRequest\feature.xml"/>
    <FeatureManifest Location="Customers\feature.xml"/>
    <FeatureManifest Location="HelpDeskCore\feature.xml"/>
  </FeatureManifests>
  <TemplateFiles>
    <TemplateFile Location="Mobile\HelpDeskHomePage.ascx"/>
    <TemplateFile Location="1033\xml\webtemphd.xml"/>
    <TemplateFile Location="SiteTemplates\HelpDesk\onet.xml"/>
    <TemplateFile Location="SiteTemplates\HelpDesk\default.aspx"/>
  </TemplateFiles>
  <Assemblies>
    <Assembly DeploymentTarget="GlobalAssemblyCache"
      Location="HelpDeskCoreFeatureReceiver.dll"/>
    <Assembly DeploymentTarget="WebApplication"
      Location="ServiceRequestValidation.dll"/>
  </Assemblies>
</Solution>

The following example shows a manifest for a solution that includes two Features and three global language resource files.

<Solution SolutionId="006be6c7-623d-44e2-95af-1f91d78d060a"
  xmlns="http://schemas.microsoft.com/sharepoint/">
  <Assemblies>
    <Assembly Location="WingtipReports.dll" DeploymentTarget="GlobalAssemblyCache" />
  </Assemblies>
  <RootFiles>
    <RootFile Location="Resources\wingtip.resx" />
    <RootFile Location="Resources\wingtip.en-US.resx" />
    <RootFile Location="Resources\wingtip.es-ES.resx" />
  </RootFiles>
  <FeatureManifests>
    <FeatureManifest Location="WeeklyStatusReport\Feature.xml" />
    <FeatureManifest Location="WeeklyStatusList\Feature.xml" />
  </FeatureManifests>
</Solution>
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.