指定要用 SharePoint 项目项部署的文件,如功能元素文件和依赖于非 SharePoint 项目的输出。
<Files>
  <ProjectItemFile.../>
  <ProjectOutputFile.../>
</Files>
FileCollectionType
特性和元素
以下几节描述了属性、子元素和父元素。
特性
无。
子元素
| 元素 | 说明 | 
|---|---|
| 可选的 ProjectItemFileType 元素。 表示在将项目项部署到 SharePoint 时要随项目项一起附带的 SharePoint 文件,例如功能元素文件。 | |
| 可选的 ProjectOutputFileType 元素。 表示在将项目项部署到 SharePoint 时要随项目项一起附带的项目的输出。 | 
父元素
| 元素 | 说明 | 
|---|---|
| 表示 SharePoint 项目项。 这是 .spdata 文件的必需的根元素。 | 
元素信息
| 命名空间 | https://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel | 
| 架构名称 | SharePoint 项目项架构 | 
| 验证文件 | ProjectItemModelSchema.xsd | 
| 是否可以为空 | 否 |