Attributes 要素 (Visual Studio コンテンツ インストーラ)

更新 : 2007 年 11 月

FileContentType によって異なる、コンポーネントについてのカスタム情報を指定します。

<Attributes>
    <Attribute>...</Attribute>
</Attributes>

属性と要素

以降のセクションでは、属性、子要素、および親要素について説明します。

属性

なし。

子要素

要素

説明

Attribute

必ず指定します。

プログラミング言語など、コンポーネントについての省略可能な情報を指定します。

親要素

要素

説明

Content

.vscontent ファイル内のコンテンツをグループ化します。

解説

Attributes は、省略可能な要素です。

使用例

プロジェクト テンプレート コミュニティ コンテンツ コンポーネントのメタデータの例を次に示します。

<VSContent xmlns="https://schemas.microsoft.com/developer/vscontent/2005">
    <Content>
        <FileName>MyProjectTemplate.zip</FileName>
        <DisplayName>Sample Project Template</DisplayName>
        <Description>A project template created for this example.</Description>
        <FileContentType>VSTemplate</FileContentType>
        <ContentVersion>2.0</ContentVersion>
        <Attributes>
            <Attribute name="ProjectType" value="Visual Basic"/>
            <Attribute name="ProjectSubType" value=""/>
            <Attribute name="TemplateType" value="Project"/>
        </Attributes>
    </Content>
</VSContent>

参照

参照

Visual Studio コンテンツ インストーラのスキーマ リファレンス