2.0 exe calling 1.1 DLL

G

Guest

Is there a way for me to know which version of CLR was used to load a DLL
while in Debug mode?

I have a 2.0 exe that calls an 1.1 dll. I am sure that when the DLL is
called, 1.1 CLR is used to load it since it was compiled in VS 2003 and 1.1,
but just wanted to confirm the same in debug mode in VS 2005 by setting a
break point in the DLL. Any way I can achieve it?

TIA
Sriram
 
M

Mattias Sjögren

I am sure that when the DLL is
called, 1.1 CLR is used to load it since it was compiled in VS 2003 and 1.1,
but just wanted to confirm the same in debug mode in VS 2005 by setting a
break point in the DLL. Any way I can achieve it?

There can only be one version of the CLR loaded into a process, and if
you're running an EXE compiled for 2.0 then it will have to be 2.0 or
later of the CLR. Any DLLs will use the same version. You can check it
programmatically at runtime with System.Environment.Version.


Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top