By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,066 Members | 1,841 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,066 IT Pros & Developers. It's quick & easy.

Application referencing dll build with different version framwork

P: n/a
Hi,

I was wondering what happens if an .net exe compiled with 1.1 uses one
dll compiled with 2.0 and one dll compiled with 1.1.
Supposing that the target machine has both 1.1 and 2.0. Does the 2.0
dll correctly use the .net 2.0 system's dll? and the 1.1 correclty use
1.1 dlls?

I'm know how exe choose .net version. But I cant figureout what happens
when the exe uses dll compiled with different versions.
Can some clearme it out?

thanks,
Al

Oct 7 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
> I was wondering what happens if an .net exe compiled with 1.1 uses one
dll compiled with 2.0 and one dll compiled with 1.1.
Supposing that the target machine has both 1.1 and 2.0. Does the 2.0
dll correctly use the .net 2.0 system's dll? and the 1.1 correclty use
1.1 dlls?


It depends on which version of the CLR was loaded by the Exe. There can only
be one runtime version loaded into the process and the corresponding version
of the system libraries will be used.

If the Exe is loaded with the v2.0 runtime, the Dll compiled with v1.1
should load and hopefully run correctly, but will use the v2.0 libraries.

If the Exe is loaded with the v1.1 runtime, you'll get an excepion trying to
load any v2.0 assembly.
Mattias

Oct 7 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.