Are CLR's backward compatible with earlier frameworks?

In udder words, if I have a .NET dll that was written with framework 1.0 or 1.1, can I include that dll in a project using the 2.0 framework and 2.0 CLR and have it work properly

Tanks, Israeli ones.




Answer this question

Are CLR's backward compatible with earlier frameworks?

  • babyboomer

    good question. you should be able to - try it, see what happens. I think though you still should have .NET 1.1 installed (or the earlier framework version of that dll which it was created in) otherwise perhaps it may not run - try it and see what happens. I'm 75% that you would probably need the other framework installed along with it to make sure it runs. Again, don't quote me

  • MauricioUY

    The 1.1 assembly will have to run in CLR 2.0. This might work.
  • Koder021

    ahmedilyas wrote:
    I think though you still should have .NET 1.1 installed (or the earlier framework version of that dll which it was created in) otherwise perhaps it may not run - try it and see what happens. I'm 75% that you would probably need the other framework installed along with it to make sure it runs.

    No you don't need the older version installed. There can only be one version loaded anyway in a process, and that will be 2.0 (or later) if the startup executable requires it.



  • Mike Greenway

    Mattias Sjogren - thanks!

  • Are CLR's backward compatible with earlier frameworks?