共用方式為


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

更新:2007 年 11 月

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

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

屬性和項目

下列小節描述屬性、子項目和父項目。

屬性

屬性

描述

xmlns

必要項。

識別結構描述命名空間。

子項目

項目

描述

Content

必要項目。

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

父項目

無。

文字值

需要文字值。

這個值指定結構描述命名空間的位置,必須包含下列值:

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

備註

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 內容安裝程式結構描述參考