<runtime> Element

Contains information about assembly binding and garbage collection.

<configuration>
   <runtime>

<runtime>
</runtime>

Child Elements

Element Description
<gcConcurrent> Specifies whether the common language runtime runs garbage collection concurrently.
<assemblyBinding> Contains information about assembly version redirection and the locations of assemblies.

Example

The following example shows how to redirect one assembly version to another.

<configuration>
   <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
         <dependentAssembly>
            <assemblyIdentity name="myAssembly"
                              publicKeyToken="32ab4ba45e0a69a1"
                              culture="neutral" />
             <bindingRedirect oldVersion="1.0.0.0"
                              newVersion="2.0.0.0"/>
         </dependentAssembly>
      </assemblyBinding>
   </runtime>
</configuration>

Configuration File

This element can be used in the application configuration file, machine configuration file (machine.config), and the publisher policy file.

See Also

Runtime Settings Schema | Configuration File Schema | Redirecting Assembly Versions | Specifying Whether to Run the Garbage Collector Concurrently