FileName Element (Visual Studio Content Installer)
Specifies the name of a file that is part of the component.
<VSContent>
<Content>
<FileName>
<FileName> </FileName>
Attributes and Elements
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. |
Remarks
FileName is a required element.
Example
The following example shows the metadata for an add-in community content component.
<VSContent xmlns="https://schemas.microsoft.com/developer/vscontent/2005">
<Content>
<FileName>MyAddin.Addin</FileName>
<FileName>MyAddin.dll</FileName>
<DisplayName>Example Add-in</DisplayName>
<Description>An add-in created for this example.</Description>
<FileContentType>Addin</FileContentType>
<ContentVersion>2.0</ContentVersion>
</Content>
</VSContent>
A component can consist of more than one file. Each component file must be identified in the .vscontent file by using the FileName element.