<assemblyBinding> Element for <configuration>

 

Specifies assembly binding policy at the configuration level.

<configuration> Element
<assemblyBinding> Element for <configuration>

<assemblyBinding  
   xmlns="urn:schemas-microsoft-com:asm.v1">
</assemblyBinding>

Attributes and Elements

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

Attributes

Attribute

Description

xmlns

Required attribute.

Specifies the XML namespace required for assembly binding. Use the string "urn:schemas-microsoft-com:asm.v1" as the value.

Child Elements

Element

Description

<linkedConfiguration> Element

Specifies a configuration file to include.

Parent Elements

Element

Description

<configuration> Element

The root element in every configuration file used by the common language runtime and .NET Framework applications.

The <linkedConfiguration> Element simplifies the management of component assemblies by allowing application configuration files to include assembly configuration files in well-known locations, rather than duplicating assembly configuration settings.

System_CAPS_noteNote

The <linkedConfiguration> element is not supported for applications with Windows side-by-side manifests.

Example

The following code example shows how to include a configuration file on the local hard disk.

<configuration>
   <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <linkedConfiguration href="file://c:\Program Files\Contoso\sharedConfig.xml"/>
   </assemblyBinding>
</configuration>
Show: