We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

FileContentType Element (Visual Studio Content Installer)

Specifies whether the component is an add-in, macro project, code snippet, starter kit or Visual Studio template, or a Toolbox control.

<FileContentType> Addin/Macro Project/Code Snippet/VSTemplate/ToolboxControl </FileContentType>

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



Child Elements


Parent Elements




Groups content in a .vscontent file.

A text value is required.

This value specifies the type of component you intend to redistribute for use by the Visual Studio Content Installer, and must contain one of the following values:

  • Addin   Specifies that the component is an add-in.

  • Macro Project   Specifies that the component is a macro project.

  • Code Snippet   Specifies that the component is a code snippet.

  • VSTemplate   Specifies that the component is a starter kit or Visual Studio template.

  • Toolbox Control   Specifies that the component is a Toolbox control.

FileContentType is a required element.

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

<VSContent xmlns="http://schemas.microsoft.com/developer/vscontent/2005">
        <DisplayName>My Macro Project</DisplayName>
        <Description> A macro project created for this example.</Description>
        <FileContentType>Macro Project</FileContentType>