Can I use a .NET 4.0 library in a .NET 2.0 application?

后端 未结 7 1345
逝去的感伤
逝去的感伤 2020-11-28 08:03

I\'m running into some problems using my .NET 4.0 libraries in .NET 2.0 applications. I guess I was under the impression that being a Windows DLL, my other .NET apps would

7条回答
  •  盖世英雄少女心
    2020-11-28 08:53

    It may be possible depending on how you are using it. In .Net 4.0 you have the option of In Process Side by Side Execution (InProc SxS). This allows you to host two different versions of CLR in the same process space. This is explained here.

    Whether you can take advantage of this in your situtaion I don't know. I have no direct experience to help you.

    Some scenarios in which this can be used.

提交回复
热议问题