<assemblyBinding> Element for <runtime> 

Contains information about assembly version redirection and the locations of assemblies.

   xmlns="urn:schemas-microsoft-com:asm.v1" appliesTo="v1.0.3705">

Attributes and Elements

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


Attribute Description


Required attribute.

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


Specifies the runtime version the .NET Framework assembly redirection applies to. This optional attribute uses a .NET Framework version number to indicate what version it applies to. If no appliesTo attribute is specified, the <assemblyBinding> element applies to all versions of the .NET Framework. The appliesTo attribute was introduced in .NET Framework version 1.1; it is ignored by the .NET Framework version 1.0. This means that all <assemblyBinding> elements are applied when using the .NET Framework version 1.0, even if an appliesTo attribute is specified.

Child Elements

Element Description


Encapsulates binding policy and assembly location for an assembly. Use one <dependentAssembly> tag for each assembly.


Specifies subdirectories the common language runtime searches when loading assemblies.


Specifies whether the runtime applies publisher policy.


Specifies the full name of the assembly that should be dynamically loaded when a partial name is used.

Parent Elements

Element Description


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


Contains information about assembly binding and garbage collection.


The following example shows how to redirect one assembly version to another and provide a codebase.

      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <assemblyIdentity name="myAssembly"
                              culture="neutral" />
            <bindingRedirect oldVersion=""
            <codeBase version=""

The following example shows how to use the appliesTo attribute to redirect binding of a .NET Framework assembly.

   <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" appliesTo="v1.0.3705">
         <assemblyIdentity name="mscorcfg" publicKeyToken="b03f5f7f11d50a3a" culture=""/>
         <bindingRedirect oldVersion="" newVersion="1.0.3300.0"/>

See Also


Runtime Settings Schema


Redirecting Assembly Versions

Other Resources

Configuration File Schema for the .NET Framework