none
Can a dll written and installed with dotNet 2.0 be loaded into an appplication written and installed with another version of dotNet? RRS feed

  • Question

  • Simple yet nagging question...

    Can a dll written and installed with dotNet 2.0 be loaded into an appplication written and installed with another version of dotNet, or do I need to have a version of the dll specific to each version of .Net that I expect the loading apps to be?

    Thanks to anyone with a definitive answer!

    Thursday, June 4, 2009 1:36 PM

Answers

All replies

  • It cannot be loaded by .NET 1.x.  No problems with 2.0 and beyond.  You can force a 1.x app to run on a higher version of .NET with the <requiredRuntime> element in the .config file.

    Hans Passant.
    Thursday, June 4, 2009 4:01 PM
    Moderator
  • Can a dll written and installed with dotNet 2.0 be loaded into an appplication written and installed with another version of dotNet, or do I need to have a version of the dll specific to each version of .Net that I expect the loading apps to be?

    One can write new code which targets the latest version of .Net which references older .Net assemblies with relatively no problems.


    William Wegerson (www.OmegaCoder.Com )
    Thursday, June 4, 2009 4:15 PM
    Moderator