适用于: SharePoint 2016 |SharePoint Foundation 2013 |SharePoint Online |SharePoint Server 2013
指定将解决方案文件复制到的根路径。
<RootFile
Location = "Text">
</RootFile>
元素和属性
下面各部分介绍了属性、子元素和父元素。
Attributes
| 属性 | 说明 |
|---|---|
|
Location |
必需 文本。 相对于 %ProgramFiles%\Common Files\Microsoft Shared\Web 服务器扩展\15 的路径。 |
子元素
无
父元素
备注
使用此元素可部署由多个功能共享的本地化资源。 共享本地化资源位于 %ProgramFiles%\Common Files\Microsoft Shared\Web server extensions\15\Resources 文件夹中。 例如,以下 XML 部署三个共享的本地化资源文件。
<RootFiles>
<RootFile Location="Resources\wingtip.resx" />
<RootFile Location="Resources\wingtip.en-US.resx" />
<RootFile Location="Resources\wingtip.es-ES.resx" />
</RootFiles>
有关使用共享本地化资源的详细信息,请参阅 Feature Element (Feature) 中 DefaultResourceFile 属性的说明。
管理中心用户界面扩展使用的本地化资源位于 %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\Config\AdminResources 文件夹中。 以下 XML 会将本地化资源文件部署到该文件夹。
<RootFiles>
<RootFile Location="Config\AdminResources\wingtip.resx" />
<RootFile Location="Config\AdminResources\wingtip.en-US.resx" />
<RootFile Location="Config\AdminResources\wingtip.es-ES.resx" />
</RootFiles>