Saturday, 4 July 2015

useLegacyV2RuntimeActivationPolicy + CorBindToRuntimeEx function

Definition


This attribute is useful if your application uses legacy activation paths, such as the CorBindToRuntimeEx function, and you want those paths to activate version 4 of the CLR instead of an earlier version, or if your application is built with the .NET Framework 4 but has a dependency on a mixed-mode assembly built with an earlier version of the .NET Framework. In those scenarios, set the attribute to true.


<?xml version = 1.0?>
   <Configuration>
      <Startup useLegacyV2RuntimeActivationPolicy = "true">
        <SupportedRuntime Version = "V4.0.30319"/>
      </Startup>
   </Configuration>


CorBindToRuntimeEx function:
Enables unmanaged hosts to load the common language runtime (CLR) into a process.

No comments:

Post a Comment