다음을 통해 공유


RootFile Element (Solution)

Applies to: SharePoint Foundation 2010

Specifies a root path to which solution files are copied.

<RootFile
  Location = "Text">
</RootFile>

Attributes

Attribute

Description

Location

Required Text. A path that is relative to %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\.

Child Elements

None

Parent Elements

RootFiles

Remarks

Use this element to deploy a localization resource that is shared by several features. Shared localization resources are located in the %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\Resources folder. For example, the following XML deploys three shared localization resource files.

<RootFiles>
  <RootFile Location="Resources\wingtip.resx" />
  <RootFile Location="Resources\wingtip.en-US.resx" />
  <RootFile Location="Resources\wingtip.es-ES.resx" />
</RootFiles>

For more information about using shared localization resources, see the description of the DefaultResourceFile attribute in Feature Element (Feature).

Localization resources used by extensions to the Central Administration user interface are located in the %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\Config\AdminResources folder. The following XML deploys localization resource files to that folder.

<RootFiles>
  <RootFile Location="Config\AdminResources\wingtip.resx" />
  <RootFile Location="Config\AdminResources\wingtip.en-US.resx" />
  <RootFile Location="Config\AdminResources\wingtip.es-ES.resx" />
</RootFiles>