.NET 版本之间的差异(主要是 c#)
最近有人要求我推荐一个 .NET 框架版本,以便在 XP 计算机的(基于 GUI 的)项目中使用。
谁能解释所有 .NET 版本之间的差异?
或者,
是否有人对详细(简要)差异的网站有很好的参考?
Ive recently been asked to recommend a .NET framework version to use in a (GUI based) project for an XP machine.
Can anyone explain the differences between all the .NET versions?
OR,
Does anyone have a good reference to a site that details (briefly) the differences?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
Jon Skeet 的《C# In Depth》一书有一节详细描述了 .NET 的版本。
Jon Skeet's book C# In Depth has one section describing versions of .NET in details.
不使用最新版本的唯一原因是它会使部署变得复杂。
.NET 2.0 通过 Windows Update 自动安装,因此您可以在部署应用程序时将其安装在目标计算机上。 .NET 3.5 尚未自动推送,因此您需要将框架与您的应用程序一起分发。 这可能会在不久的将来发生改变。
如果您不关心部署,请选择最新版本。 事实上,您以 .NET 3.5 框架为目标,并不意味着您必须使用所有新技术。 例如,您仍然可以使用 Windows 窗体而不是 WPF,但这是另一个问题。
The only reason to not go for the latest version is that it can complicate deployment.
.NET 2.0 is installed automatically via Windows Update, so you can expect it to be on the target computer when your deploy your application. .NET 3.5 is not being pushed automatically yet, so you need to distribute the framework with your application. This will probably change in the near future.
If you are not concerned about deployment, then go for the latest version. The fact that you target the .NET 3.5 framework, does not mean that you have to use all the new technology. For instance you can still use Windows Forms instead of WPF, but that is another question.
简而言之,这取决于情况。
.NET 2.0 是您应该考虑的最旧版本。
.NET 3.0 是从 2.0 的简单升级路径,与 1.1 到 2.0 的重大更改不同。 然而,它更多的是功能的水平扩展,并且您不会看到图形选项的巨大变化。
如果您对更复杂的 GUI(例如 sliverlight)感兴趣,则应该考虑 .NET 3.5。 它提供了更多新技术和选项,包括 WPF、Expression 中的新 IDE 等等。 http://www.asp.net 不会是一个糟糕的开始。
The short answer is that it depends.
.NET 2.0 is the oldest version you should be considering.
.NET 3.0 is an easy upgrade path from 2.0, not the same amount of breaking changes as from 1.1 to 2.0. However it is more of an extension, horizontally of functionality, and you would not see a huge shift in graphical options.
.NET 3.5 should be looked at if you are interested in much more sophisticated gui such as sliverlight. It has a lot more new technologies and options to offer including WPF, a new IDE in Expression and much more. http://www.asp.net would not be a bad start.
此页面适合列出更改:
http://en.wikipedia.org/wiki/ Microsoft_.NET
正如有人已经提到的,.NET 2.0 是您需要查看的最低版本。 像泛型这样的东西使它成为必须拥有的东西。
.NET 3.5 是您应该考虑的另一个版本。 这取决于您想要如何设计项目,.NET 2.0 非常以开发人员为中心,而 .net 3.5 在设计人员和开发人员之间有很好的划分。
This page is good for a list of changes:
http://en.wikipedia.org/wiki/Microsoft_.NET
As someone has already mentioned, .NET 2.0 is the minimum version you need to look at. Things like Generics make it a must have.
.NET 3.5 is the other version you should consider. It depends on how you want to design your projects, .NET 2.0 is very developer central, whereas .net 3.5 has a good split between designer and developer.
这其实并不重要。 .NET 2.0、3.0 和 3.5 都使用完全相同的 CLR 和基类。 每个版本仅添加一组新程序集。 对于 GUI 开发,如果使用 Windows 窗体,则使用 2.0 就可以了,如果使用 WPF,则需要 3.0。 由于它们在其他方面基本相同,因此没有充分的理由不安装 3.5 SP1。
It doesn't really matter much. .NET 2.0, 3.0 and 3.5 all use the exact same CLR and base classes. Each version just adds a set of new assemblies. For GUI development, you're fine with 2.0 if you use Windows Forms, you'll need 3.0 for WPF. Since they are otherwise essentially identical, there is no good reason to not just install 3.5 SP1.