2.0 exe calling 1.1 DLL

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
Back
Top