<startup> Element | Microsoft Docs[^]: useLegacyV2RuntimeActivationPolicy Attribute: trueEnable .NET Framework 2.0 runtime activation policy for the chosen runtime, which is to bind legacy runtime activation techniques (such as the CorBindToRuntimeEx function) to the runtime chosen from the configuration file instead of capping them at CLR version 2.0. Thus, if CLR version 4 or later is chosen from the configuration file, mixed-mode assemblies created with earlier versions of the .NET Framework are loaded with the chosen CLR version. Setting this value prevents CLR version 1.1 or CLR version 2.0 from loading into the same process, effectively disabling the in-process side-by-side feature.falseUse the default activation policy for the .NET Framework 4 and later, which is to allow legacy runtime activation techniques to load CLR version 1.1 or 2.0 into the process. Setting this value prevents mixed-mode assemblies from loading into the .NET Framework 4 or later unless they were built with the .NET Framework 4 or later. This value is the default.
useLegacyV2RuntimeActivationPolicy
app.config
true
<startup useLegacyV2RuntimeActivationPolicy="true"> ... </startup>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)