Share via


Attributes 요소(Visual Studio 콘텐츠 설치 관리자)

FileContentType에 따라 변하는 구성 요소에 대한 사용자 지정 정보를 지정합니다.

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

특성 및 요소

다음 단원에서는 특성, 자식 요소 및 부모 요소에 대해 설명합니다.

특성

없음

자식 요소

요소

설명

특성

필수 요소.

프로그래밍 언어와 같은 구성 요소에 대한 옵션 정보를 지정합니다.

부모 요소

요소

설명

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 콘텐츠 설치 관리자 스키마 참조