会发生什么事,当.NET 4.0引用一个.NET 2.0的程序集? [英] What happens when .NET 4.0 references a .NET 2.0 assembly?

查看:246
本文介绍了会发生什么事,当.NET 4.0引用一个.NET 2.0的程序集?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

究竟做了.NET 4.0运行时做的,如果一个.NET 4.0的可执行文件中引用了一个.NET 2.0的程序集?

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

是.NET 2.0的程序集与.NET 4.0运行时上运行(换句话说,.NET 4.0必须是100%的API兼容于.NET 2.0)还是过程中莫名其妙地举办了.NET 2.0运行时和一些魔术偏偏让.NET 2.0类型的透明访问我的.NET 4.0的code?

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?

推荐答案

他们说,这应该能正常运行。看看<一href="http://social.msdn.microsoft.com/Forums/en/netfxappcompat$p$prelease/thread/d307e0af-10e7-4aca-9582-a60844857f73">this.

They say it should work fine. Check out this.

这篇关于会发生什么事,当.NET 4.0引用一个.NET 2.0的程序集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆