M
M
Michael2012-04-26 11:29:29
.NET
Michael, 2012-04-26 11:29:29

How to connect a library from an older (2.0) framework to an application using a newer (4.0) framework?

Says "could not be found (are you missing a using directive or an assembly reference?)"

Answer the question

In order to leave comments, you need to log in

3 answer(s)
F
FinDK, 2012-04-26
@FinDK

(I'll try to write the actions in more detail)
I use the dll compiled under the 2nd framework in the project on the 4th framework. To connect it, I add it to the project for convenience, in order to immediately see where it lies from the solution,
and then in the window for adding a link I look for it in the project folder where it was created, via browse.
Good luck!

E
Exvel, 2012-04-26
@exvel

Strange, in theory, should see.
Try to set the version of the environment in app.config, nothing else comes to mind.

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

R
rasa, 2012-04-26
@rasa

regsvr32 did on DLL'ku?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question