<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>  

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

Attributes

AttributeDescription
xmlnsRequired attribute.

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

Child Elements

ElementDescription
<linkedConfiguration> ElementSpecifies a configuration file to include.

Parent Elements

ElementDescription
<configuration> ElementThe 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_ICON_note.jpg Note

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

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>  

Configuration File Schema

Show: