Can .NET 4.0 code interoperate with .NET 2.0 code?

后端 未结 2 1860
独厮守ぢ
独厮守ぢ 2021-02-01 17:21

Are there compatibility barriers with a .NET 4.0 assembly calling code in a .NET 2.0 assembly? And vice versa?

More specifically, I\'m investigating an upgrade to Visua

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-01 18:02

    .NET 4.0 assemblies can call .NET 2.0 assemblies with no difficulty. However, it is highly unlikely you will be able to call a .NET 4.0 assembly from .NET 2.0 unless the .NET 4.0 assembly did not take advantage of any new framework features and you setup assembly redirects.

提交回复
热议问题