共用方式為


Content Element (VSX Schema)

Contains references to the installable components of the VSIX package.

<Content>
  <Assembly>...</Assembly>
  <CustomExtension>...</CustomExtension>
  <ItemTemplate>...</ItemTemplate>
  <MEFComponent>...<MEFComponent>
  <ProjectTemplate>...</ProjectTemplate>
  <ToolboxControl>...</ToolboxControl>
  <VSPackage>...</VSPackage>
</Content>

Attributes and Elements

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

Attributes

Attribute

Description

None

Child Elements

Element

Description

Assembly Element

Optional. Specifies an assembly to install.

CustomExtension Element

Optional. Specifies a custom extension to install and specifies its type.

ItemTemplate Element

Optional. Specifies an item template to install.

MEFComponent Element

Optional. Specifies a MEF component to install.

ProjectTemplate Element

Optional. Specifies a project template to install.

ToolboxControl Element

Optional. Specifies a Toolbox control to install.

VSPackage Element

Optional. Specifies a VSPackage to install.

Parent Elements

Element

Description

VSIX Element

Required. Provides the root element for a manifest that describes an extension deployment package.

Remarks

All extension components should have references in the Content element except for components that are included only as dependencies. Dependencies are referenced from the References Element. Dependencies are contained in their own nested VSIX packages and installed immediately before the dependent extension, as required.

Technically, the Content element is optional. However, a VSIX package that does not have a Content element, or has an empty Content element, will not install anything except dependencies.

Element Information

Namespace

https://schemas.microsoft.com/developer/vsx-schema/2010

Schema Name

VSIX Manifest

Validation File

VSIXManifestSchema.xsd

Can be Empty

Yes

See Also

Other Resources

VSIX Extension Schema Reference

Visual Studio Extension Deployment