[Content_types].xml (VSIX Deployment)
Contains information about the kinds of content in a VSIX package. Extension Manager uses the [Content_Types].xml file to install the package, but it does not install the file itself.
Note
|
|---|
|
Although this topic applies only to [Content_Type].xml files that are used in VSIX packages, the [Content_Types].xml file type is part of the Open Packaging Conventions (OPC) standard. For more information, see OPC: A New Standard For Packaging Your Data on the MSDN Web site. |
The following sections describe the root element and its attributes and child elements.
Visual Studio recognizes the following ContentType values for the associated Extension types.
|
Extension |
ContentType |
|---|---|
|
txt |
text/plain |
|
pkgdef |
text/plain |
|
xml |
text/xml |
|
vsixmanifest |
text/xml |
|
htm or html |
text/html |
|
rtf |
application/rtf |
|
|
application/pdf |
|
gif |
image/gif |
|
jpg or jpeg |
image/jpg |
|
tiff |
image/tiff |
|
vsix |
application/zip |
|
zip |
application/zip |
|
dll |
application/octet-stream |
|
all other file types |
application/octet-stream |
<?xml version="1.0" encoding="utf-8" ?>
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
<Default Extension="vsixmanifest" ContentType="text/xml" />
<Default Extension="dll" ContentType="application/octet-stream" />
<Default Extension="png" ContentType="application/octet-stream" />
<Default Extension="txt" ContentType="text/plain" />
<Default Extension="pkgdef" ContentType="text/plain" />
</Types>
Note