Share via


Library Element (ProxyGen)

Required root element of a proxy descriptor file generated by using ProxyGen.exe. The proxy descriptor file describes the contents of either a COM type library or a managed assembly.

<Library originalName = "Name of COM type library or managed assembly"
    versionMajor = "Major version of library or assembly"
    versionMinor = "Minor version of library or assembly"
    xmlns="Namespace of schema">
  <COMLibrary>...</COMLibrary>
  <ManagedLibrary>...</ManagedLibrary>
</Library>

Attributes and Elements

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

Attributes

Attribute

Description

versionMajor

Optional xs:integer attribute.

The major version of the COM type library or managed assembly.

versionMinor

Optional xs:integer attribute.

The minor version of the COM type library or managed assembly.

originalName

Required name_Type attribute.

The name of the COM type library or managed assembly that was passed to ProxyGen.exe, without file extension.

Child Elements

Element

Description

COMLibrary

Optional COMLibrary_Type element.

Represents the contents of the COM type library. You must include either a COMLibrary or a ManagedLibrary element, but not both.

ManagedLibrary

Optional ManagedLibrary_Type element.

Represents the contents of the managed assembly. You must include either a ManagedLibrary or a COMLibrary element, but not both.

Parent Elements

None.

Element Information

Namespace

https://schemas.microsoft.com/vsta/2008/01/ProxyGenDescriptor

Schema name

ProxyGen Descriptor

Validation file

ProxyGenDescriptorv2.xsd

Can be empty

No

See Also

Concepts

ProxyGen Descriptor Schema Reference

Creating Proxies

Defining Entry Points and Other Proxy Changes