.NET 3.5 功能在 Windows Server 2008 中不可用 - 唯一的选项是 3.0

发布于 2024-10-22 00:02:38 字数 149 浏览 1 评论 0原文

我需要在 Windows Server 2008 中安装一个应用程序。它需要 .NET 3.5 或更高版本,运行 Windows Update 后我已经安装了 4.0 版本。但是,在“添加功能”中,我唯一的选择是添加 .NET Framework 3.0。有人知道这里发生了什么事吗?

I have an application I need to install in Windows Server 2008. It requires .NET 3.5 or higher and after running Windows Update I've got version 4.0 installed. However, in 'Add Features' the only option I have is to add .NET Framework 3.0. Anyone have an idea of what's going on here?

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

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

发布评论

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

评论(2

衣神在巴黎 2024-10-29 00:02:38

这有点偏离直接回答您的问题,但可能会间接回答它...

在工作中,我们的服务器仅允许选择 .NET 1.12.0.50727.4927 (来自在 IIS 的 ASP.NET 选项卡中)。但是,我们确实运行 3.5 网站(我认为 3.0 从未单独安装过)。

但如何呢?嗯,我相信这是因为这是前两个版本,它们之间在框架的核心方面有很大的区别 - 这意味着您必须选择 CLR 的版本来区分适当地(这就是这些服务器值所代表的);尽管在 3.5 中,实际上只是构成框架的一些外围库发生了变化,并且它们都可以使用 2.0 CLR 加载代码>,因此它们是。

长话短说:不管它看起来如何告诉您,选择 IIS 中的 2.0 CLR 允许您在任何地方运行应用程序您环境中的3.5

只需确保您知道应用程序是针对哪个 CLR 版本开发的,并选择正确的版本即可。

来自维基百科

.NET Framework 3.5 版本是
于 2007 年 11 月 19 日发布,但
不包含在 Windows Server 中
2008. 与 .NET Framework 3.0 一样,版本 3.5 使用版本的 CLR
2.0。此外,它还安装 .NET Framework 2.0 SP1(安装 .NET
框架 2.0 SP2 和 3.5 SP1) 和
.NET Framework 3.0 SP1(安装 .NET
框架 3.0 SP2 和 3.5 SP1),其中
添加一些方法和属性
2.0 版本中的 BCL 类
3.5 版本功能需要
比如语言综合查询
(LINQ)。这些变化不影响
为 2.0 版本编写的应用程序,
然而。

This is a little diverted from answering your question directly, but may answer it indirectly...

At work our server only allows selection of .NET 1.1 and 2.0.50727.4927 (from within IIS' ASP.NET tab). However, we do run 3.5 websites (3.0 was never installed individually, I think).

But how? Well, I believe it to be because those are the first two versions which, between them, have a substantial difference in the core of the framework - which means you have to select the version of the CLR to differentiate appropriately (which is what these server values represent); though with 3.5 it is actually only a number of peripheral libraries which make up the framework that have changed, and they can all be loaded using the 2.0 CLR, therefore they are.

Long story short: despite what it looks like it is telling you, selection of the 2.0 CLR in IIS allows you to run applications anywhere up to 3.5 within your environment.

Just make sure you know which CLR version the application has been developed for and select the correct one.

From Wikipedia:

Version 3.5 of the .NET Framework was
released on 19 November 2007, but it
is not included with Windows Server
2008. As with .NET Framework 3.0, version 3.5 uses the CLR of version
2.0. In addition, it installs .NET Framework 2.0 SP1, (installs .NET
Framework 2.0 SP2 with 3.5 SP1) and
.NET Framework 3.0 SP1 (installs .NET
Framework 3.0 SP2 with 3.5 SP1), which
adds some methods and properties to
the BCL classes in version 2.0 which
are required for version 3.5 features
such as Language Integrated Query
(LINQ). These changes do not affect
applications written for version 2.0,
however.

始终不够 2024-10-29 00:02:38

另外,如果您安装了 .NET 4.0(完整版本,而不仅仅是客户端配置文件),您也会自动安装所有旧版本。

Also, if you have .NET 4.0 (the full version, not just the Client Profile)installed, you automatically have every older version as well.

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