ASP.NET 2.0 还是 3.5?
曾经有一段时间,我认为当前的非测试版 ASP.NET 声明了当前 .NET CLR (2.0) 的版本号,尽管 .NET Framework 的版本是 3.5。每当我看到“ASP.NET 3.5”,我就觉得谁写的不对。
然而,我开始觉得我错了。官方 ASP.NET 版本号是否已从 2.0 更改为 3.5(在 .NET Framework 版本为 3.5 期间),还是官方一直是“ASP.NET 3.5”(我一直是个白痴)?
There was a time that I thought the current non-beta ASP.NET claimed the version number of the current .NET CLR (2.0), even though the .NET Framework was version 3.5. Whenever I saw "ASP.NET 3.5", I felt that whomever had written it was incorrect.
However, I'm starting to feel that I'm incorrect. Has the official ASP.NET version number changed from 2.0 to 3.5 (during the time that the .NET Framework version has been 3.5), or has it always officially been "ASP.NET 3.5" (and I've been an idiot)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
就CLR而言,只有2.0;就库而言,.net Framework 版本 2.0、3.0、3.5 和 3.5 SP1 中的 ASP.NET 有明确的更改(请参阅 MSDN,例如)。
由于有功能更改,我将其称为“ASP.NET 3.5”。
然而,更糟糕的是, drop- IIS 中的下拉框,您可以在其中选择“1.1...”或“2.0...”,称为“ASP.NET 版本”。当然,这里的IIS指的是CLR版本。
我一直无法找到对此的“官方”声明(尽管我没有仔细寻找)。微软似乎在回避这个问题。在上面的 MSDN 链接中,他们写了“.net Framework 3.5 SP1 中的 ASP.NET 增强功能”。
所以,严格来说,我猜 ASP.NET 没有版本号,就像 WinForms 没有版本号或
System.String
没有版本号一样。 “ASP.NET 3.5”只是 .net Framework 3.5 库的 ASP.NET 部分的非正式缩写。In terms of the CLR, there is only 2.0; in terms of the libraries, there are definite changes in ASP.NET in the .net Framework versions 2.0, 3.0, 3.5 and 3.5 SP1 (see MSDN, for example).
Since there are feature changes, I would call it "ASP.NET 3.5".
However, to make things worse, the drop-down box in IIS where you can select either "1.1..." or "2.0...." is called "ASP.NET version". Of course, IIS is referring to the CLR version here.
I've been unable to find an "official" statement on this (I haven't looked hard, though). Microsoft seems to avoid this problem. In the above MSDN link, they write about "ASP.NET Enhancements in .net Framework 3.5 SP1".
So, strictly speaking, I guess ASP.NET does not have a version number, just like WinForms does not have a version number or
System.String
does not have a version number. "ASP.NET 3.5" is just an informal abbreviation for the ASP.NET part of the .net Framework 3.5 libraries.是的,ASP.NET 2.0 和 ASP.NET 3.5 是不同的。 3.5 是最新的非测试版。 2.0和3.5都使用2.0运行环境。
Yes, ASP.NET 2.0 and ASP.NET 3.5 are different. 3.5 is the most current non-beta release. Both 2.0 and 3.5 use the 2.0 runtime environment.