はい、1 つの機能に複数の要素マニフェストを含めることができます。
ElementManifest 要素 (機能)から:
発生
最小: 0
最大: 無制限
さらに、Feature.xml ファイルの例は、1 つの機能に複数の要素マニフェストを示しています。
<Feature
Id="11111111-1111-1111-1111-11111111111"
Title="Location Services"
Description="This Feature contains lists and parts that let you link location data to your customer lists."
Scope="Web">
<ActivationDependencies>
<ActivationDependency
FeatureId="11111111-1111-1111-1111-111111111111" />
</ActivationDependencies>
<ElementManifests>
<ElementManifest
Location="Location\LocationPart.xml"/>
<ElementManifest
Location="CustomerLocation\CustomerLocationList.xml"/>
<ElementFile
Location="test.aspx"/>
</ElementManifests>
<Properties>
<Property
Key="Color"
Value="Blue"/>
<Property
Key="Shape"
Value="Triangle"/>
</Properties>
</Feature>
1 つのポイントとして、1 つの機能に Elements.xml という名前の複数のファイルを含めることができるかどうかを具体的に尋ねました。各 Elements.xml ファイルが一意のディレクトリにある場合、その答えもイエスです。これらの機能はファイル システムに依存しているため、Elements.xml という名前の 2 つの異なるファイルを同じディレクトリに配置することはできません。