Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ContentVersion Element (Visual Studio Content Installer)

ContentVersion Element (Visual Studio Content Installer)

Specifies which versions of Visual Studio the component supports.

<VSContent>
   <Content>
     <ContentVersion>
<ContentVersion> 1.0/2.0 </ContentVersion>

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

Attributes

None.

Child Elements

None.

Parent Elements

Element

Description

Content

Groups content in a .vscontent file.

A text value is required.

This value specifies which version of Visual Studio a component is designed to work with.

  • 1.0   Specifies that the component is compatible with Visual Studio 2005, Visual Studio 2008 and Visual Studio 2010.

  • 2.0   Specifies that the component is compatible with Visual Studio 2008, Visual Studio 2010, and Visual Studio 2012.

For managed language add-ins, specifying <ContentVersion>1.0</ContentVersion> will not install the add-in for use in both Visual Studio 2005 and Visual Studio 2008 unless the Version element in the .addin file for the add-in specifies the value 8.0 and 9.0 or the value *. For more information, see Add-In Registration.

The following example shows the metadata for a Windows community content component written in Visual Basic.

<VSContent xmlns="http://schemas.microsoft.com/developer/vscontent/2005">
    <Content>
        <FileName>MyWindowsApplication.vbproj</FileName>
        <DisplayName>My Windows Project</DisplayName>
        <Description> A Windows project, written in Visual Basic, created for this example.</Description>
        <FileContentType>Windows Project</FileContentType>
        <ContentVersion>1.0</ContentVersion>
    </Content>
</VSContent>
Show:
© 2015 Microsoft