.NET 紧凑框架向后兼容 3.5 和 2.0

发布于 2024-09-01 01:45:45 字数 193 浏览 2 评论 0原文

我是否需要在安装了 .NET 3.5 的设备上安装 .NET 2.0?

到目前为止,我的应用程序在 .NET 2.0 上运行(可能应该更快),但长期计划是将其移植到 .NET 3.5。我需要订购设备,而 OEM 需要知道应将哪个版本的 .NET 添加到 Windows CE 映像(版本 5.0)。我要让他同时添加.NET 2.0 和.NET 3.5 吗?

Do I need to install .NET 2.0 on the device, where .NET 3.5 is installed?

So far my application works on .NET 2.0 (which potentially should be faster) but the long term plan is to port it to .NET 3.5. I need to order devices and the OEM needs to know which version of .NET should be added to the Windows CE image (version 5.0). Shall I ask him to add both .NET 2.0 and .NET 3.5?

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

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

发布评论

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

评论(3

我还不会笑 2024-09-08 01:45:45

使用 app.configdevice.config 文件,您可以升级您的应用程序并告诉 .NET Compact Framework 它可以通过 支持的运行时或兼容版本(其中一些适用于 .NET 1.0 到 .NET 2.0,但其机制对于.NET 3.5)。

微软甚至有一个工具帮助生成正确的文件。

Using either an app.config or a device.config file you can promote your application and tell the .NET Compact Framework which runtimes it can use via either the supportedRuntime or compatibility version (some of these are for .NET 1.0 to .NET 2.0, but the mechanism remains the same for .NET 3.5).

Microsoft even has a tool to aid in generating the proper files.

划一舟意中人 2024-09-08 01:45:45

据我所知,只应将 .net cf 的一个版本添加到映像中。 3.5 或 2.0 之一,不能两者兼而有之。

至于向后兼容性,我相信 Artiom回答了这个问题。

As far as I know only one version of the .net cf should be added to the image. Either 3.5 or 2.0 and not both.

As for backward compatibility, I believe Artiom answers that.

北城孤痞 2024-09-08 01:45:45

实际上,.NET 3.5 只是 .NET 2 框架之上的程序集的超集(与完全独立的 .NET 4 不同)。

因此,如果您安装 .NET 3.5,它将安装并运行 .NET 2 应用程序,不会出现任何问题。

Actually, .NET 3.5 is just a superset of assemblies on top of the .NET 2 framework (unlike .NET 4 which is completely separate).

So if you install .NET 3.5, it will install and should run .NET 2 apps with no problems, afaik.

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