ソリューション スキーマ

最終更新日: 2010年8月12日

適用対象: SharePoint Foundation 2010

ソリューション マニフェスト ファイルでは、ファイル、アセンブリ、コード アクセス セキュリティ、Web パーツ、機能、サイト定義、その他のリソースなど、ソリューションの構成部分が定義されています。

Solution

  ActivationDependencies 要素 (ソリューション)

    ActivationDependency 要素 (ソリューション)

  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

次の例では、機能、サイト定義ファイル、およびアセンブリの宣言を含むソリューション マニフェスト ファイルを示します。

<Solution SolutionId="4AFC1350-F354-4439-B941-51377E845F2B" 
  xmlns="https://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>

次の例は、2 つの機能と 3 つのグローバル言語リソース ファイルを含むソリューションのマニフェストを示しています。

<Solution SolutionId="006be6c7-623d-44e2-95af-1f91d78d060a"
  xmlns="https://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>