如果内置于.net 3.5中的dll在Web应用程序.net 2.0中使用,它将起作用吗? [英] Will it work if dll built in .net 3.5 use in web app .net 2.0

查看:66
本文介绍了如果内置于.net 3.5中的dll在Web应用程序.net 2.0中使用,它将起作用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用从.net 3.5框架创建的dll并在.net 2.0框架下运行的Web应用程序中使用?

DLL包含用于3.5(脚本管理器,模式弹出窗口和日历)的ajaxtoolkit.

Is it ok to use the dll created from .net 3.5 framework and utilize in web application running under .net 2.0 framework?

The DLL contains ajaxtoolkit for 3.5(scriptmanager, modal popup, and calendar)

推荐答案

是的.你可以.但是我真的不推荐.

它应该抱怨它不了解DLL,因为它是用更高版本构建的,但是除非您实际上在DLL中使用V3.5功能,否则它不会停止您的工作.
Yee...esss. You can. But I really wouldn''t recommend it.

It should complain that it doesn''t understand the DLL as it is built with a later version, but it won''t stop you working unless you actually use V3.5 features in the DLL.


不,您不能.没有创建自"此目标.您应该使用目标2.0来构建DLL.它可能会编译,也可能不会编译,因为您可能会使用v.2.0之后引入的一些新.NET功能(新语言功能无关紧要,您可以使用它们).

—SA
No, you cannot. There is not "created from" this is "targeted to". You should build the DLL with the target 2.0. It may or not compile, because you might use some new .NET features introduced after v.2.0 (new language features do not matter, you can use them).

—SA


这篇关于如果内置于.net 3.5中的dll在Web应用程序.net 2.0中使用,它将起作用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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