跨框架性能下降

发布于 2024-07-09 12:14:18 字数 94 浏览 6 评论 0原文

我有一个 .NET 3.5 WinForms 项目,该项目使用多个第 3 方控件和几个为 1.1 框架编译的自制组件。

使用 1.1 组件是否会影响性能?

I have a .NET 3.5 WinForms project that uses several 3rd party controls and a couple of home-grown components that are compiled for the 1.1 framework.

Is there a performance hit for using 1.1 components?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

原谅我要高飞 2024-07-16 12:14:18

否,因为该框架的 1.1 版本应该可以在 2.0 附带的 CLR 运行时上正常运行。 除非您正在做一些奇怪的事情,否则您的应用程序仅在一个 AppDomain 中运行,该 AppDomain 可能是 2.0,因此该 AppDomain 中的所有内容都应该在 2.0 上运行,包括您的 1.1 库。

.NET 3.5 框架是 2.0 框架的扩展。 所以当我说2.0时,3.0和3.5都包含在其中。

所以从运行时的角度来看你完全没问题。 由于不了解有关库的更多信息,您可能会使用在新框架中得到改进的过时 API,但这是您可能遇到问题的唯一地方

No because the version 1.1 of the framework should run just fine on the CLR Runtime that came with 2.0. Unless you are doing something odd, your application is running in only one AppDomain which is probably 2.0, so everything in that AppDomain should be running on 2.0, including your 1.1 libraries.

The .NET 3.5 framework is an extension of the 2.0 framework. So when I say 2.0, 3.0 and 3.5 are included in that.

So you are totally fine from a runtime perspective. Not knowing more about the libraries, you could be using outdated API's that have been improved in the new framework, but that is the only place you might experience a problem

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文