Using build 3.5 in 4

I have an assembly that works fine when using the .Net framework 3.5, but when using it in 4 it gives an error that the assembly cannot be loaded. Does anyone know a solution to this problem? (I cannot change the assembly in any way or change the target structure of the projects, as this will remove the purpose of the application). The programming code is C #.

Basically: I create an application in the .Net 4 framework, but the assembly is not compatible with it.

The following error: the assembly with the mixed module is created with version v2.0.50727 from the runtime and cannot be loaded without additional configuration information at run time version 4.0.

+3
source share
1 answer

, , .NET 4.0 Visual Studio 2010 (.. , .)

, app.config .NET 4.0:

app.config.

<?xml version="1.0"?>
<configuration>
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
  </startup>
</configuration>

- useLegacyV2RuntimeActivationPolicy. CLR (4.0) . .

, (++/CLI). CLR 3.5 app.config.

+6

All Articles