次の方法で共有


Files element

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Specifies the files to deploy with the SharePoint project item, such as Feature element files and the output of dependent non-SharePoint projects.

Syntax

<Files>
  <ProjectItemFile.../>
  <ProjectOutputFile.../>
</Files>

Type

FileCollectionType

Attributes and elements

The following sections describe attributes, child elements, and parent elements.

Attributes

None.

Child elements

Element Description
ProjectItemFile Optional ProjectItemFileType element.

Represents a SharePoint file, such as Feature element file, to include with the project item when it is deployed to SharePoint.
ProjectOutputFile Optional ProjectOutputFileType element.

Represents the output of a project to include with the project item when it is deployed to SharePoint.

Parent elements

Element Description
ProjectItem Represents a SharePoint project item. This element the required root element of the .spdata file.

Element information

Property Value
Namespace http://schemas.microsoft.com/VisualStudio/
2010/SharePointTools/SharePointProjectItemModel
Schema name SharePoint Project Item Schema
Validation file ProjectItemModelSchema.xsd
Can be empty No

See also