0

I have project in VS2010 based of .net 4.0

And I try to include external dll, based of .net 3.5.

I get warning conflict versions of libraries and external dll does not load...

Source code of external dll does not have.

What I can do?

oberfreak
  • 1,799
  • 13
  • 20
Swan911
  • 49
  • 1
  • 7

3 Answers3

1

Do you need featues of .net 4.0 in your project? (you could set the .net framework to 3.5 in the Project propertys.)

Otherwise you could make a wrapping project. : Add a new .net 3.5 c# Project to your solution and add the reference to your 3.5 dll. Then reference the wrapper project from your initial project and you should be able to use the classes from the dll.

0

Try adding this to your app.config (in the configuration tag):

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

This should enable you to use mixed mode assemblies that are built for CLR 2.0

Botz3000
  • 39,020
  • 8
  • 103
  • 127
0

Not clear whether this is your problem, but here is a solution to a similar issue: What 'additional configuration' is necessary to reference a .NET 2.0 mixed mode assembly in a .NET 4.0 project?

Community
  • 1
  • 1
jlew
  • 10,491
  • 1
  • 35
  • 58