.net框架兼容性问题 [英] .net framework compatibility questions

查看:58
本文介绍了.net框架兼容性问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是.NET Framework的新手.我对.NET程序执行有疑问.

I am newbie to the .NET Framework. I have some a question about .NET program execution.

如果我正在使用.NET Framework 4.0版开发.NET应用程序,那么该应用程序可以在.NET Framework 3.5上运行吗?是否存在任何兼容性问题?

If I am developing a .NET application using .NET Framework version 4.0, can that application be run on .NET framework 3.5 ? Are there any compatibility issues are there?

例如,如果我使用.NET Framework 4.0开发一个dll,是否可以由另一个使用.NET Framework 3.5的程序引用它?

For example If I develop a dll using .NET framework 4.0, can it be referenced by another programme which is using .NET framework 3.5?

推荐答案

否,您不能从.NET 3.5中编译的程序引用.NET 4.0中编译的DLL..NET Framework应用程序通常是向后兼容的-也就是说,您可以从.NET 4.0代码中引用.NET 3.5程序集,但事实并非如此.

No, you cannot reference a DLL compiled in .NET 4.0 from a program compiled in .NET 3.5. .NET Framework applications are usually backward compatible -- that is, you can reference a .NET 3.5 assembly from .NET 4.0 code, but the reverse is not true.

您可以尝试在4.0中编译.NET 3.5项目,或在.NET 3.5中编译.NET 4.0程序集,如果可以选择两者中的任何一个都可以工作.

You could try compiling the .NET 3.5 project in 4.0, or compiling the .NET 4.0 assembly in .NET 3.5, either of which will work if they are an option.

这篇关于.net框架兼容性问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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