Udostępnij za pośrednictwem


Attributes Element (Visual Studio Content Installer)

Specifies custom information about the component, which varies based on FileContentType.

<VSContent>
   <Content>
     <Attributes>

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

Attributes and Elements

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

Attributes

None.

Child Elements

Element

Description

Attribute

Required.

Specifies optional information about a component, such as programming language.

Parent Elements

Element

Description

Content

Groups content in a .vscontent file.

Remarks

Attributes is an optional element.

Example

The following example shows the metadata for a project template community content component.

<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>

See Also

Reference

Visual Studio Content Installer Schema Reference