解决方案架构

适用于: SharePoint 2016 |SharePoint Foundation 2013 |SharePoint Online |SharePoint Server 2013

解决方案清单文件定义解决方案的组成部分,包括其文件、程序集、代码访问安全性、Web 部件、功能、网站定义和其他资源。

解决方案

示例

下面的示例演示一个解决方案指令清单文件,其中包括有关功能、网站定义文件和程序集的声明。

<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>

下面的示例演示一个解决方案指令清单,其中包括两个功能和三个全局语言资源文件。

<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>