共用方式為


在 Windows 和 Windows Server 上安裝 .NET Framework

所有目前版本的 Windows 和 Windows Server 都包含 .NET Framework。 本文可協助您瞭解 Windows 和 Windows Server 中包含的 .NET Framework 版本,以及是否有可用的升級。

最新版的 .NET Framework 是 4.8.1。 此版本的 .NET Framework 支援所有 .NET Framework 4 應用程式。 如需特定 .NET Framework 版本的詳細資訊,請參閱 .NET Framework 版本和相依性

備註

.NET Framework 是僅限 Windows 的技術,且與 .NET 分開(先前稱為 .NET Core)。 如需詳細資訊,請參閱 .NET 簡介

支援的 .NET Framework 版本

仍然支援下列 .NET Framework 版本:

.NET Framework 3.5

Microsoft仍支援 .NET Framework 3.5,即使它是舊版的 .NET Framework 也一樣。 不過,只支援執行應用程式的 .NET Framework 3.5 運行時間。 不支持開發以 .NET Framework 3.5 為目標的新應用程式。 此版本的 .NET Framework 支援執行以 1.0 到 3.5 版為目標的應用程式,並可與 .NET Framework 4 一起安裝。

如果您嘗試執行以 .NET Framework 1.0 到 3.5 為目標的應用程式,且缺少 .NET Framework 3.5,系統會提示您安裝它。 如需詳細資訊,請參閱 在 Windows 上安裝 .NET Framework 3.5

.NET Framework 4.x

所有 .NET Framework 4.x 版本都是就地更新。 Windows 上只能有單一 4.x 版本。 因為 .NET Framework 會安裝為 Windows 的一部分,請考慮:

  • 如果計算機上已安裝較新的 4.x 版本,則無法安裝先前的 4.x 版本。
  • 如果 OS 已預安裝特定 .NET Framework 版本,則您無法在同一部電腦上安裝先前的 4.x 版本。
  • 如果您安裝較新的版本,就不需要先卸載舊版。

開發人員和 Visual Studio

Visual Studio 使用 .NET Framework 開發人員套件來支援以 .NET Framework 4 的特定版本為目標。 如果您是需要針對舊版 .NET Framework 4 的專案進行開發的開發者,請安裝相應的開發人員套件。 如需詳細資訊,請參閱 安裝適用於開發人員的 .NET Framework

Windows 11

.NET Framework 4.8 最初隨附於 Windows 11。 從 Windows 11 22H2 開始(2022 年 9 月發行),隨附 .NET Framework 4.8.1。

在下表中, ❌ 代表不支援的 Windows 11 版本,並✔️代表支援的 Windows 11 版本。 下表也說明 Windows 11 隨附的 .NET Framework 版本,以及您可以升級至哪個版本的 .NET Framework。

Windows 11 版本 包含 .NET Framework 支援最新的 .NET Framework
✔️ 24H2 (2024 年 10 月) 4.8.1 4.8.1
✔️ 23H2 (2023 年 10 月) 4.8.1 4.8.1
❌ 22H2 (2022 年 9 月) 4.8.1 4.8.1
❌ 21H2 (2021 年 10 月) 4.8 4.8.1

如需 Windows 11 終止支援日期的詳細資訊,請參閱 Windows 11 家用版和專業版生命週期Windows 生命週期常見問題

在 Windows 11 上安裝 .NET Framework

如果您使用 Windows 11 21H2,請下載並執行安裝程式來安裝 .NET Framework 4.8.1。 如果您使用任何其他版本的 Windows 11,則已安裝最新的 .NET Framework。

如果您需要安裝支援 .NET Framework 應用程式 1.0 到 3.5 的 .NET Framework 3.5,請參閱 .NET Framework 3.5 一節

如需更多下載,請參閱 所有下載

Windows 10

.NET Framework 4.6 最初隨附於 Windows 10。 不過,較新版本的 Windows 10 包含 .NET Framework 的升級版本。

Windows 10 22H2 是 Windows 10 的最後一個支援版本。 支援將於 2025 年 10 月 14 日結束。 如需 Windows 10 終止支援日期的詳細資訊,請參閱 Windows 10 家用版和專業版生命週期Windows 生命週期常見問題

在下表中, ❌ 代表不支援的 Windows 10 版本,並✔️代表支援的 Windows 10 版本。 下表也說明特定 Windows 10 版本隨附的 .NET Framework 版本,以及您可以升級的 .NET Framework 版本。

Windows 10 版本 包含 .NET Framework 支援最新的 .NET Framework
✔️ 22H2 (2022 年 10 月) 4.8 4.8.1
❌ 21H2 (2021 年 11 月) 4.8 4.8.1
❌ 21H1 (2021 年 5 月) 4.8 4.8.1
❌ 20H2 (2020 年 10 月) 4.8 4.8.1
❌ 2004年5月(2020年5月) 4.8 4.8
❌ 1909 年 11 月 (2019 年 11 月) 4.8 4.8
❌ 1903 年 5 月 (2019 年 5 月) 4.8 4.8
❌ 1809 (2018 年 10 月) 4.7.2 4.8
❌ 1803 (2018 年 4 月) 4.7.2 4.8
❌ 1709 (2017 年 10 月) 4.7.1 4.8
❌ 1703 (2017 年 4 月) 4.7 4.8
❌ 1607 (2016 年 8 月) 4.6.2 4.8
❌ 1511 (2015 年 11 月) 4.6.1 4.6.2
❌ 1507 (2015 年 7 月) 4.6 4.6.2

在 Windows 10 上安裝 .NET Framework

最新版的 .NET Framework 是 4.8.1,可以安裝在 Windows 10 22H2 上。

如果您需要安裝支援 .NET Framework 應用程式 1.0 到 3.5 的 .NET Framework 3.5,請參閱 .NET Framework 3.5 一節

如需更多下載,請參閱 所有下載

Windows 伺服器

無論是否仍在支援中,Windows Server 都會隨附一個 .NET Framework 版本。 只支援 Windows Server 2022 和 Windows Server 2025,而且兩者都支援最新版的 .NET Framework。 如需 Windows Server 終止支援日期的詳細資訊,請參閱下列文章:

在下表中, ❌ 代表不支援的 Windows Server 版本,並✔️代表支援的 Windows Server 版本。 下表也說明特定 Windows Server 版本隨附的 .NET Framework 版本,以及您可以升級至的 .NET Framework 版本。

Windows 伺服器 包含 .NET Framework 支援最新的 .NET Framework
✔️ Windows Server 2025 4.8.1 4.8.1
✔️ Windows Server 2022 4.8 4.8.1
❌ Windows Server 2019 4.7.2 4.8
❌ Windows Server 版本 1809 4.7.2 4.8
❌ Windows Server 版本 1803 4.7.2 4.8
❌ Windows Server 版本 1709 4.7.1 4.7.2
❌ Windows Server 2016 4.6.2 4.8
❌ Windows Server 2012 R2 4.5.1 4.8
❌ Windows Server 2012 4.5 4.8
❌ Windows Server 2008 R2 SP1 3.5 4.8
❌ Windows Server 2008 SP2 2.0 4.6
❌ Windows Server 2003 2.0 4.0

在 Windows Server 上安裝 .NET Framework

最新版的 .NET Framework 是 4.8.1,它已安裝在 Windows Server 2025 上,而且可以安裝在 Windows Server 2022 上。

如果您需要安裝支援 .NET Framework 應用程式 1.0 到 3.5 的 .NET Framework 3.5,請參閱 .NET Framework 3.5 一節

如需更多下載,請參閱 所有下載

Windows 8.1、8、7、Vista、XP

下表描述這些舊版 Windows 隨附的 .NET Framework 版本,以及該作系統的最後一個 .NET Framework 版本。 這些作業系統都不受支援。 這項資訊是為了歷史目的而提供。

窗戶 包含 .NET Framework 支援最新的 .NET Framework
Windows 8.1 4.5.1 4.8
Windows 8 4.5 4.6.1
Windows 7 3.5 4.8
Windows Vista 3.0 4.6
Windows XP SP3 沒有 4.0.3
Windows XP SP2 沒有 3.5
Windows XP 沒有 1.0

在舊版 Windows 上安裝 .NET Framework

某些下載不適用於這些舊版 Windows,有些安裝程式可能無法執行。 例如,最新的 .NET Framework 4.8 安裝程式可能無法在 Windows 8.1 上執行。 您可能需要搜尋因特網以尋找較舊的下載專案,因為它們不再由Microsoft提供。

如需更多下載,請參閱 所有下載

所有下載

下列清單是可從Microsoft下載之每個 .NET Framework 版本的連結。

Microsoft不再提供其他 .NET Framework 版本的下載。

另請參閱