VSContent 項目 (Visual Studio 內容安裝程式)

包含與社群內容項目有關的所有中繼資料 (Metadata)。

<VSContent xmlns="https://schemas.microsoft.com/developer/vscontent/2005">
    <Content>    
        <FileName>    </FileName>0
        <DisplayName>    </DisplayName>
    ...
    </Content>
</VSContent>

屬性和項目

下列各節將說明屬性、子項目和父項目。

屬性

屬性

描述

xmlns

必要項。

識別結構描述命名空間,並且必須包含以下值:

https://schemas.microsoft.com/developer/vscontent/2005

子項目

項目

描述

Content

必要項目。

包含識別社群內容類型的資料、該資料的顯示方式,及該資料內容所支援的 Visual Studio 版本。

父項目

無。

備註

VSContent 項目是 .vscontent 檔的根項目 (Root Element)。

範例

下列範例將顯示巨集社群內容元件的中繼資料 (Metadata)。

<VSContent xmlns="https://schemas.microsoft.com/developer/vscontent/2005">
    <Content>
        <FileName>MyMacroProject.vsmacros</FileName>
        <DisplayName>My Macro Project</DisplayName>
        <Description> A macro project created for this example.</Description>
        <FileContentType>Macro Project</FileContentType>
        <ContentVersion>1.0</ContentVersion>
    </Content>
</VSContent>

請參閱

參考

Visual Studio 內容安裝程式結構描述參考