.Net 1.0和2.0混合应用
我有一个带有 dll 的 .Net 应用程序,其中一些是用 .Net 1.1 编译的,有些是用 2.0 编译的。 这样的应用程序是如何工作的——应用程序不是只有一个运行时吗? 如果是的话,是哪一个? 如果不是,对象如何在运行时之间传递?
I have a .Net app with dll's that some of them were compiled with .Net 1.1 and some with 2.0. How does such an application work - isn't there only one runtime for an application? If so which is it? If not how are objects being passed between the runtimes?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您说得对,应用程序中只使用了一个运行时。 在您的情况下,整个应用程序需要使用 2.0 运行时:1.1 运行时无法理解 2.0 DLL,但 2.0 运行时确实了解 1.1 DLL。
You're right in saying that there's only one runtime used in the application. In your case, the whole application needs to use the 2.0 runtime: the 1.1 runtime can't understand 2.0 DLLs, but the 2.0 runtime does know about 1.1 DLLs.