Windows 作業系統與 .NET Framework

來源:互聯網
上載者:User

標籤:import   ati   line   ima   sys   複製   env   系統   san   

Windos 2000

在單位的機房裡好不easy才找到一台安裝 Windows 2000 Server SP4 作業系統的server。這台碩果僅存的server到本月底也要退役了。

Windows 2000 作業系統是沒有預裝不論什麼版本號碼的 .NET Framework 的。中的 Microsoft .NET Framework 2.0 是我為了在該server上執行一些 C# 語言寫的小程式而安裝的。

Windows XP

中的 Windows XP Professional SP3 作業系統是我們單位辦公用機專用的。裝機量很的大。

相同,Windows XP 作業系統也沒有預裝 .NET Framework。中的 Microsoft .NET Framework 全家福也是我自己安裝的。

Windows Server 2003

Windows Server 2003 作業系統最初叫作“Windows .NET Server”。後改成“Windows .NET Server 2003”,終於被改成“Windows Server 2003”,於2003年3月28日公布。並在同年四月底上市。正如原來的名字中的 .NET 所暗示的。Microsoft .NET Framework 1.1 已經成為該作業系統的組件了。不須要另外安裝。

2005年發售的 Windows Server 2003 R2 中內建了 Microsoft .NET Framework 2.0。

除了前面提到的一台以外,我們機房中的其它server所有都是安裝這個版本號碼的作業系統。

的 Windows 組件嚮導中已經包含 Microsoft .NET Framework 2.0 了。

在加入或刪除程式中能夠看到其它版本號碼的 Microsoft .NET Framework:

Windows Vista

中的 Windows Vista 是我購買的 Dell Inspiron 1520 本本預裝的作業系統。

能夠看出。Microsoft .NET Framework 3.0 (includes .NET 2.0) 已經成為 Vista 作業系統的組件了。

更高版本號碼的 .NET Framework 就要自己安裝了:

Windows 7

中的 Windows 7 專業版眼下僅用來測試相容性:

能夠看出。Windows 7 作業系統已經內建了 .NET Framework 3.5 (includes .NET 2.0 and 3.0)。

 

Microsoft .NET Framework 4 還須要自己安裝:

Windows 8

中的 Windows 8 Consumer Preview 是我到 Microsoft 網站下載後安裝的。

能夠看出,Windows 8 作業系統預設安裝了 .NET Framework 4.5,而且 .NET Framework 3.5 (includes .NET 2.0 and 3.0)也是該作業系統的組件,可是預設沒有啟用該組件。

所下面圖中就不包含不論什麼版本號碼的 .NET Framework 了。

假設在 Windows 8 作業系統中執行 .NET 2.0 的程式,就會彈出下面對話方塊。

測試程式

讓我們寫一個很easy的程式來測試一下吧:

 1 using System; 2 using System.IO; 3  4 static class Tester 5 { 6   static void Main() 7   { 8     Console.WriteLine("OS  Version: " + Environment.OSVersion); 9     Console.WriteLine("CLR Version: " + Environment.Version);10   }11 }

該程式在各種 Windows 作業系統中的執行結果例如以下所看到的:

Windows 2000OS  Version: Microsoft Windows NT 5.0.2195 Service Pack 4CLR Version: 2.0.50727.832Windows XPOS  Version: Microsoft Windows NT 5.1.2600 Service Pack 3CLR Version: 2.0.50727.3625CLR Version: 4.0.30319.239Windows Server 2003OS  Version: Microsoft Windows NT 5.2.3790 Service Pack 2CLR Version: 2.0.50727.3625CLR Version: 4.0.30319.239Windows VistaOS  Version: Microsoft Windows NT 6.0.6002 Service Pack 2CLR Version: 2.0.50727.4216CLR Version: 4.0.30319.239Windows 7OS  Version: Microsoft Windows NT 6.1.7601 Service Pack 1CLR Version: 2.0.50727.5420CLR Version: 4.0.30319.239Windows 8 Consumer PreviewOS  Version: Microsoft Windows NT 6.2.8250.0CLR Version: 2.0.50727.6111CLR Version: 4.0.30319.17379

上述結果中的 CLR 2.0 和 CLR 4.0 是分別使用對應版本號碼的 C# 編譯器編譯後兩次執行的結果。

Windows 作業系統核心版本號碼

各 Windows 作業系統的核心版本號碼例如以下所看到的:

  • Windows NT 5.0: Windows 2000
  • Windows NT 5.1: Windows XP
  • Windows NT 5.2: Windows Server 2003, Windows Server 2003 R2
  • Windows NT 6.0: Windows Vista, Windows Server 2008
  • Windows NT 6.1: Windows 7, Windows Server 2008 R2
  • Windows NT 6.2: Windows 8

從上面能夠看出。所謂的 Windows 7、Windows 8 只是是 Windows NT 6.1、6.2。而 Windows Server 2008 R2 相對於 Windows Server 2008 來說,進行了比較大的升級。

Components and Layers .NET Framework versions

來源於:MSDN: .NET Framework Versions and Dependencies。

Windows 作業系統與 .NET Framework

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.