What happens when .NET 4.0 references a .NET 2.0 assembly?

穿精又带淫゛_ 提交于 2019-11-28 02:29:39

问题


What exactly does the .NET 4.0 runtime do if a .NET 4.0 executable contains a reference to a .NET 2.0 assembly?

Is the .NET 2.0 assembly run with the .NET 4.0 runtime (in other words, .NET 4.0 must be 100% API-compatible to .NET 2.0) or does the process somehow host the .NET 2.0 runtime and some magic happens to make the .NET 2.0 types transparently accessible to my .NET 4.0-based code?


回答1:


They say it should work fine. Check out this.



来源:https://stackoverflow.com/questions/2653566/what-happens-when-net-4-0-references-a-net-2-0-assembly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!