.NET Framework 版本和相依性.NET Framework versions and dependencies

.NET Framework 的每個版本都包含 common language runtime (CLR) 、基類庫,以及其他 managed 程式庫。Each version of .NET Framework contains the common language runtime (CLR), the base class libraries, and other managed libraries. 本文描述依版本 .NET Framework 的主要功能、提供基礎 CLR 版本與相關聯開發環境的相關資訊,以及識別 Windows 作業系統 (作業系統) 所安裝的版本。This article describes the key features of .NET Framework by version, provides information about the underlying CLR versions and associated development environments, and identifies the versions that are installed by the Windows operating system (OS).

.NET Framework 的每個新版本都會新增新功能,但會保留舊版的功能。Each new version of .NET Framework adds new features but retains features from previous versions.

注意

.NET Framework 4.8 是 .NET Framework 的最新版本,而且不會再發行其他版本。.NET Framework 4.8 is the last version of .NET Framework, and no further versions will be released. 不過,.NET Framework 將 繼續提供 每月安全性和可靠性錯誤修正的服務。However, .NET Framework will continue to be serviced with monthly security and reliability bug fixes. 此外,它仍會繼續隨附于 Windows,而且沒有計劃將它移除。Additionally, it will continue to be included with Windows, with no plans to remove it. 您不需要遷移 .NET Framework 的應用程式,但對於新的開發,請使用 .net 5.0 或更新版本You don't need to migrate your .NET Framework apps, but for new development, use .NET 5.0 or later.

CLR 是透過自己的版本號碼加以識別。The CLR is identified by its own version number. .NET Framework 版本號碼會在每次發行時遞增,但 CLR 版本不一定會遞增。The .NET Framework version number is incremented at each release, but the CLR version is not always incremented. 例如,.NET Framework 4、4.5 和更新版本包含 CLR 4,但是 .NET Framework 2.0、3.0 和3.5 包含 CLR 2.0。For example, .NET Framework 4, 4.5, and later releases include CLR 4, but .NET Framework 2.0, 3.0, and 3.5 include CLR 2.0. (沒有 CLR 版本 3)。(There was no version 3 of the CLR.)

提示

版本資訊Version information

接下來的表格摘要說明 .NET Framework 版本歷程記錄,並將每個版本與 Visual Studio、Windows 和 Windows Server 相互關聯。The tables that follow summarize .NET Framework version history and correlate each version with Visual Studio, Windows, and Windows Server. Visual Studio 支援多目標,所以您並不限於列出的 .NET Framework 版本。Visual Studio supports multi-targeting, so you're not limited to the version of .NET Framework that's listed.

  • 核取記號圖示✔️代表預設安裝 .NET Framework 的 OS 版本。The check mark icon ✔️ denotes OS versions on which .NET Framework is installed by default.
  • 加號圖示➕代表未安裝 .NET Framework 但可以安裝的 OS 版本。The plus sign icon ➕ denotes OS versions on which .NET Framework doesn't come installed but can be installed.
  • 星號 * * _ 代表 .NET Framework (預先安裝或不) 必須 在主控台中 啟用的 OS 版本,或是 Windows Server 的伺服器管理員。The asterisk **_ denotes OS versions on which .NET Framework (whether preinstalled or not) must be enabled in Control Panel or, for Windows Server, through the Server Manager.
.NET Framework 4.8.NET Framework 4.8 .NET Framework 4.7.2.NET Framework 4.7.2 .NET Framework 4.7.1.NET Framework 4.7.1 .NET Framework 4.7.NET Framework 4.7
.NET Framework 4.6.2.NET Framework 4.6.2 .NET Framework 4.6。1.NET Framework 4.6.1 .NET Framework 4.6.NET Framework 4.6 .NET Framework 4.5.2.NET Framework 4.5.2
.NET Framework 4.5。1.NET Framework 4.5.1 .NET Framework 4.5.NET Framework 4.5 .NET Framework 4.NET Framework 4 .NET Framework 3.5.NET Framework 3.5
.NET Framework 3.0.NET Framework 3.0 .NET Framework 2.0.NET Framework 2.0 .NET Framework 1.1.NET Framework 1.1 .NET Framework 1.0.NET Framework 1.0

.NET Framework 4.8.NET Framework 4.8

CLR 版本*CLR version* 44
Windows 版本Windows versions ✔️10月2019更新✔️ 10 May 2019 Update
➕ 10 2018 年10月更新 (1809 版) ➕ 10 October 2018 Update (Version 1809)
➕2018年4月10日更新 (1803 版) ➕ 10 April 2018 Update (Version 1803)
➕10個秋季建立者更新 (1709 版) ➕ 10 Fall Creators Update (Version 1709)
➕10建立者更新 (1703 版) ➕ 10 Creators Update (Version 1703)
➕10周年更新 (1607 版) ➕ 10 Anniversary Update (Version 1607)
➕8。1➕ 8.1
➕7➕7
Windows Server 版本Windows Server versions ➕ Windows Server 2019➕ Windows Server 2019
➕ Windows Server,版本1809➕ Windows Server, version 1809
➕ Windows Server,版本1803➕ Windows Server, version 1803
➕2016➕ 2016
➕ 2012 R2➕ 2012 R2
➕2012➕ 2012
➕ 2008 R2 SP1➕ 2008 R2 SP1
判斷已安裝的 .NET 版本To determine installed .NET version 使用 Release DWORD:Use Release DWORD:
- 528040 (Windows 10 2019 年 5 月更新)- 528040 (Windows 10 May 2019 Update)
- 528049 (所有其他作業系統版本)- 528049 (all other OS versions)
(請參閱 指示) (See instructions)

.NET Framework 4.7.2.NET Framework 4.7.2

CLR 版本CLR version 44
隨附於 Visual Studio 版本Included in Visual Studio version 2019120191
Windows 版本Windows versions ✔️ 10 2018 年10月更新 (1809 版) ✔️ 10 October 2018 Update (Version 1809)
✔️2018年4月10日更新 (1803 版) ✔️ 10 April 2018 Update (Version 1803)
➕10個秋季建立者更新 (1709 版) ➕ 10 Fall Creators Update (Version 1709)
➕10建立者更新 (1703 版) ➕ 10 Creators Update (Version 1703)
➕10周年更新 (1607 版) ➕ 10 Anniversary Update (Version 1607)
➕8。1➕ 8.1
➕7➕7
Windows Server 版本Windows Server versions ✔️ Windows Server 2019✔️ Windows Server 2019
✔️ Windows Server,版本1809✔️ Windows Server, version 1809
✔️ Windows Server,版本1803✔️ Windows Server, version 1803
➕ Windows Server,版本1709➕ Windows Server, version 1709
➕2016➕ 2016
➕ 2012 R2➕ 2012 R2
➕2012➕ 2012
➕ 2008 R2 SP1➕ 2008 R2 SP1
判斷已安裝的 .NET 版本To determine installed .NET version 使用 Release DWORD:Use Release DWORD:
- 461814 (Windows 10 2018 年 10 月更新)- 461814 (Windows 10 October 2018 Update)
- 461808 (Windows 10 2018 年 4 月更新及 Windows Server,版本 1803)- 461808 (Windows 10 April 2018 Update and Windows Server, version 1803)
- 461814 (所有其他作業系統版本)- 461814 (all other OS versions)
(請參閱 指示) (See instructions)

1 需要安裝 .net 桌面開發ASP.NET 和網頁開發Azure 開發Office/SharePoint 開發使用 .net 的行動裝置開發,或是 .net Core 跨平臺開發 工作負載。1 Requires installing the .NET desktop development, ASP.NET and web development, Azure development, Office/SharePoint development, Mobile development with .NET, or .NET Core cross-platform development workloads.

.NET Framework 4.7.1.NET Framework 4.7.1

CLR 版本CLR version 44
Windows 版本Windows versions ✔️10個秋季建立者更新 (1709 版) ✔️ 10 Fall Creators Update (Version 1709)
➕10建立者更新 (1703 版) ➕ 10 Creators Update (Version 1703)
➕10周年更新 (1607 版) ➕ 10 Anniversary Update (Version 1607)
➕8。1➕ 8.1
➕7➕7
Windows Server 版本Windows Server versions ➕ Windows Server,版本1803➕ Windows Server, version 1803
✔️ Windows Server,版本1709✔️ Windows Server, version 1709
➕2016➕ 2016
➕ 2012 R2➕ 2012 R2
➕2012➕ 2012
➕ 2008 R2 SP1➕ 2008 R2 SP1
判斷已安裝的 .NET 版本To determine installed .NET version 使用 Release DWORD:Use Release DWORD:
- 461308 (Windows 10 Creators Update 及 Windows Server,版本 1709)- 461308 (Windows 10 Creators Update and Windows Server, version 1709)
- 461310 (所有其他 OS 版本)- 461310 (all other OS versions)
(請參閱 指示) (See instructions)

.NET Framework 4.7.NET Framework 4.7

CLR 版本CLR version 44
Windows 版本Windows versions ✔️10建立者更新 (1703 版) ✔️ 10 Creators Update (Version 1703)
➕10周年更新 (1607 版) ➕ 10 Anniversary Update (Version 1607)
➕8。1➕ 8.1
➕7➕7
Windows Server 版本Windows Server versions ➕2016➕ 2016
➕ 2012 R2➕ 2012 R2
➕2012➕ 2012
➕ 2008 R2 SP1➕ 2008 R2 SP1
判斷已安裝的 .NET 版本To determine installed .NET version 使用 Release DWORD:Use Release DWORD:
- 460798 (Windows 10 Creators Update)- 460798 (Windows 10 Creators Update)
- 460805 (所有其他作業系統版本)- 460805 (all other OS versions)
(請參閱 指示) (See instructions)

.NET Framework 4.6.2.NET Framework 4.6.2

CLR 版本CLR version 44
Windows 版本Windows versions ✔️10周年更新 (1607 版) ✔️ 10 Anniversary Update (Version 1607)
➕10年11月更新 (1511 版) ➕ 10 November Update (Version 1511)
➕10➕ 10
➕8。1➕ 8.1
➕7➕ 7
Windows Server 版本Windows Server versions ✔️2016✔️ 2016

➕ 2012 R2➕ 2012 R2
➕2012➕ 2012
➕ 2008 R2 SP1➕ 2008 R2 SP1
判斷已安裝的 .NET 版本To determine installed .NET version 使用 Release DWORD:Use Release DWORD:

- 394802 (Windows 10 年度更新版及 Windows Server 2016)- 394802 (Windows 10 Anniversary Update and Windows Server 2016)
- 394806 (所有其他作業系統版本)- 394806 (all other OS versions)

(請參閱 指示) (See instructions)

.NET Framework 4.6.1.NET Framework 4.6.1

CLR 版本CLR version 44
隨附於 Visual Studio 版本Included in Visual Studio version 2017120171
Windows 版本Windows versions ✔️10年11月更新 (1511 版) ✔️ 10 November Update (Version 1511)
➕10➕ 10
➕8。1➕ 8.1
➕8➕ 8
➕7➕ 7
Windows Server 版本Windows Server versions ➕ 2012 R2➕ 2012 R2
➕2012➕ 2012
➕ 2008 R2 SP1➕ 2008 R2 SP1
判斷已安裝的 .NET 版本To determine installed .NET version 使用 Release DWORD:Use Release DWORD:

- 394254 (Windows 10 11 月更新)- 394254 (Windows 10 November Update)
- 394271 (所有其他作業系統版本)- 394271 (all other OS versions)

(請參閱 指示) (See instructions)

1 需要安裝 .net 桌面開發ASP.NET 和網頁開發Azure 開發Office/SharePoint 開發使用 .net 的行動裝置開發,或是 .net Core 跨平臺開發 工作負載。1 Requires installing the .NET desktop development, ASP.NET and web development, Azure development, Office/SharePoint development, Mobile development with .NET, or .NET Core cross-platform development workloads.

.NET Framework 4.6.NET Framework 4.6

CLR 版本CLR version 44
隨附於 Visual Studio 版本Included in Visual Studio version 20152015
Windows 版本Windows versions ✔️10✔️ 10

➕8。1➕ 8.1
➕8➕ 8
➕7➕ 7
➕ Vista➕ Vista
Windows Server 版本Windows Server versions ➕ 2012 R2➕ 2012 R2
➕2012➕ 2012
➕ 2008 R2 SP1➕ 2008 R2 SP1
➕ 2008 SP2➕ 2008 SP2
判斷已安裝的 .NET 版本To determine installed .NET version 使用 Release DWORD:Use Release DWORD:

- 393295 (Windows 10)- 393295 (Windows 10)
- 393297 (所有其他作業系統版本)- 393297 (all other OS versions)

(請參閱 指示) (See instructions)

.NET Framework 4.5.2.NET Framework 4.5.2

CLR 版本CLR version 44
Windows 版本Windows versions ➕8。1➕ 8.1
➕8➕ 8
➕7➕ 7
➕ Vista➕ Vista
Windows Server 版本Windows Server versions ➕ 2012 R2➕ 2012 R2
➕2012➕ 2012
➕ 2008 R2 SP1➕ 2008 R2 SP1
➕ 2008 SP2➕ 2008 SP2
判斷已安裝的 .NET 版本To determine installed .NET version 使用 Release DWORD 379893Use Release DWORD 379893

(請參閱 指示) (See instructions)

.NET Framework 4.5.1.NET Framework 4.5.1

CLR 版本CLR version 44
隨附於 Visual Studio 版本Included in Visual Studio version 20132013
Windows 版本Windows versions ✔️8。1✔️ 8.1

➕8➕ 8
➕7➕ 7
➕ Vista➕ Vista
Windows Server 版本Windows Server versions ✔️ 2012 R2✔️ 2012 R2

➕2012➕ 2012
➕ 2008 R2 SP1➕ 2008 R2 SP1
➕ 2008 SP2➕ 2008 SP2
判斷已安裝的 .NET 版本To determine installed .NET version 使用 Release DWORD:Use Release DWORD:

- 378675 (Windows 8.1)- 378675 (Windows 8.1)
- 378758 (其他所有版本)- 378758 (all other)

(請參閱 指示) (See instructions)

.NET Framework 4.5.NET Framework 4.5

CLR 版本CLR version 44
隨附於 Visual Studio 版本Included in Visual Studio version 20122012
Windows 版本Windows versions ✔️8✔️ 8
➕7➕ 7
➕ Vista➕ Vista
Windows Server 版本Windows Server versions ✔️2012✔️ 2012
➕ 2008 R2 SP1➕ 2008 R2 SP1
➕ 2008 SP2➕ 2008 SP2
判斷已安裝的 .NET 版本To determine installed .NET version 使用 Release DWORD 378389Use Release DWORD 378389

(請參閱 指示) (See instructions)

.NET Framework 4.NET Framework 4

新功能New features

CLR 版本CLR version 44
隨附於 Visual Studio 版本Included in Visual Studio version 20102010
Windows 版本Windows versions ➕7➕ 7
➕ Vista➕ Vista
Windows Server 版本Windows Server versions ➕ 2008 R2 SP1➕ 2008 R2 SP1
➕ 2008 SP2➕ 2008 SP2
➕2003➕ 2003
判斷已安裝的 .NET 版本To determine installed .NET version 請參閱 指示See instructions

.NET Framework 3.5.NET Framework 3.5

新功能New features:

  • LINQLINQ
  • 運算式樹狀架構Expression trees
  • 已改進 AJAX 開發的 ASP.NET 支援Improved ASP.NET support for AJAX development
  • HashSet 集合HashSet collections
  • DateTimeOffsetDateTimeOffset
  • WCF 和 WF 整合WCF and WF integration
  • 對等網路Peer-to-Peer networking
  • 擴充性的增益集Add-ins for extensibility
CLR 版本CLR version 2.02.0
隨附於 Visual Studio 版本Included in Visual Studio version 20082008
Windows 版本Windows versions ✔️10*✔️ 10*
✔️8。1*✔️ 8.1*
✔️8*✔️ 8*
✔️7✔️ 7

➕ Vista➕ Vista
Windows Server 版本Windows Server versions ➕ Windows Server,版本1803*➕ Windows Server, version 1803*
➕ Windows Server,版本1709*➕ Windows Server, version 1709*
➕2016*➕ 2016*
➕ 2012 R2*➕ 2012 R2*
➕2012*➕ 2012*

✔️ 2008 R2 SP1*✔️2008 R2 SP1*

➕ 2008 SP2➕ 2008 SP2
➕2003➕ 2003
判斷已安裝的 .NET 版本To determine installed .NET version 請參閱 指示See instructions

.NET Framework 3.0.NET Framework 3.0

新功能New features:

  • Windows Presentation FoundationWindows Presentation Foundation
  • Windows Communication FoundationWindows Communication Foundation
  • Windows Workflow FoundationWindows Workflow Foundation
  • Windows CardSpaceWindows CardSpace
CLR 版本CLR version 2.02.0
Windows 版本Windows versions ✔️ Vista✔️ Vista
Windows Server 版本Windows Server versions ✔️ 2008 R2 SP1 *✔️ 2008 R2 SP1*
✔️ 2008 SP2*✔️ 2008 SP2*

➕2003➕ 2003
判斷已安裝的 .NET 版本To determine installed .NET version 請參閱 指示See instructions.

.NET Framework 2.0.NET Framework 2.0

新功能New features:

  • 泛型Generics
  • 偵錯工具編輯後繼續Debugger edit and continue
  • 改良的擴充性和效能Improved scalability and performance
  • ClickOnce 部署ClickOnce deployment
  • 在 ASP.NET 2.0 中,新的控制項和支援廣泛的瀏覽器陣列In ASP.NET 2.0, new controls and support for a broad array of browsers
  • 64 位元支援64-bit support
CLR 版本CLR version 2.02.0
隨附於 Visual Studio 版本Included in Visual Studio version 20052005
Windows 版本Windows versions N/AN/A
Windows Server 版本Windows Server versions ✔️ 2008 R2 SP1✔️ 2008 R2 SP1
✔️ 2008 SP2✔️ 2008 SP2
✔️2003✔️ 2003
判斷已安裝的 .NET 版本To determine installed .NET version 請參閱 指示See instructions

.NET Framework 1.1.NET Framework 1.1

新功能New features:

  • ASP.NET mobile 控制項ASP.NET mobile controls
  • 並存執行Side-by-side execution
  • IPv6 支援IPv6 support
CLR 版本CLR version 1.11.1
隨附於 Visual Studio 版本Included in Visual Studio version 20032003
Windows 版本Windows versions N/AN/A
Windows Server 版本Windows Server versions ✔️2003✔️ 2003
判斷已安裝的 .NET 版本To determine installed .NET version 請參閱 指示See instructions

.NET Framework 1.0.NET Framework 1.0

CLR 版本CLR version 1.01.0
隨附於 Visual Studio 版本Included in Visual Studio version Visual Studio .NETVisual Studio .NET
Windows 版本Windows versions N/AN/A
Windows Server 版本Windows Server versions N/AN/A
判斷已安裝的 .NET 版本To determine installed .NET version 請參閱 指示See instructions

注意

  • 您必須透過 適用于 windows) 的主控台 (或 Windows Server 伺服器管理員的 () ,在此作業系統上啟用 .NET Framework。.NET Framework must be enabled on this operating system through Control Panel (for Windows) or the Server Manager (for Windows Server).
  • 一般而言,您不應該卸載電腦上已安裝的任何 .NET Framework 版本,因為您使用的應用程式可能相依于特定版本,如果移除該版本,可能會中斷。In general, you should not uninstall any versions of .NET Framework that are installed on your computer, because an application you use may depend on a specific version and may break if that version is removed. 您可以同時在單一電腦上載入多個版本的 .NET Framework。You can load multiple versions of .NET Framework on a single computer at the same time. 這表示您不需要卸載舊版,就可以安裝 .NET Framework。This means that you can install .NET Framework without having to uninstall previous versions. 如需詳細資訊,請參閱 消費者入門For more information, see Getting Started.

4.5 和更新版本的備註Remarks for version 4.5 and later

.NET Framework 4.5 是就地更新,會取代您電腦上的 .NET Framework 4,同樣地,.NET Framework 4.5.1、4.5.2、4.6、4.6.1、4.6.2、4.7、4.7.1、4.7.2 和4.8 都是 .NET Framework 4.5 的就地更新。.NET Framework 4.5 is an in-place update that replaces .NET Framework 4 on your computer, and similarly, .NET Framework 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, and 4.8 are in-place updates to .NET Framework 4.5. 就地更新表示它們使用相同的執行階段版本,但元件版本會更新並包含新的類型和成員。In-place update means that they use the same runtime version, but the assembly versions are updated and include new types and members. 安裝其中一個更新之後,您的 .NET Framework 4、.NET Framework 4.5、.NET Framework 4.6 或 .NET Framework 4.7 應用程式會繼續執行,而不需重新編譯。After you install one of these updates, your .NET Framework 4, .NET Framework 4.5, .NET Framework 4.6, or .NET Framework 4.7 apps should continue to run without requiring recompilation. 不過,反向操作則不可行。However, the reverse is not true. 我們不建議您在舊版中執行以較新版 .NET Framework 為目標的應用程式。We do not recommend running apps that target a later version of .NET Framework on an earlier version. 例如,我們不建議您在 .NET Framework 4.5 上執行針對 .NET Framework 4.6 的應用程式。For example, we do not recommend that you run an app the targets .NET Framework 4.6 on .NET Framework 4.5.

以下是適用的方針:The following guidelines apply:

  • 在 Visual Studio 中,您可以選擇 .NET Framework 4.5 作為專案的目標 Framework (這會設定 GetReferenceAssemblyPaths.TargetFrameworkMoniker 屬性),將專案編譯為 .NET Framework 4.5 的組件或可執行檔。In Visual Studio, you can choose .NET Framework 4.5 as the target framework for a project (this sets the GetReferenceAssemblyPaths.TargetFrameworkMoniker property) to compile the project as a .NET Framework 4.5 assembly or executable. 此組件或可執行檔可用於任何已安裝 .NET Framework 4.5、4.5.1、4.5.2、4.6、4.6.1、4.6.2、4.7、4.7.1、4.7.2 或 4.8 的電腦。This assembly or executable can then be used on any computer that has the .NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, or 4.8 installed.

  • 在 Visual Studio 中,您可以選擇 .NET Framework 4.5.1 作為專案的目標 Framework,以 .NET Framework 4.5.1 元件或可執行檔進行編譯。In Visual Studio, you can choose .NET Framework 4.5.1 as the target framework for a project to compile it as a .NET Framework 4.5.1 assembly or executable. 請只在安裝 .NET Framework 4.5.1 或更新版本的電腦上執行這個元件或可執行檔。Only run this assembly or executable on computers that have .NET Framework 4.5.1 or later installed. 以 .NET Framework 4.5.1 為目標的可執行檔將會遭到封鎖,而無法在只安裝舊版 .NET Framework 的電腦上執行,例如 .NET Framework 4.5。An executable that targets .NET Framework 4.5.1 will be blocked from running on a computer that only has an earlier version of .NET Framework, such as .NET Framework 4.5, installed. 系統會提示使用者安裝 .NET Framework 4.5.1。The user will be prompted to install .NET Framework 4.5.1. 此外,您不應該從以舊版 .NET Framework 為目標的應用程式呼叫 .NET Framework 4.5.1 元件,例如 .NET Framework 4.5。In addition, .NET Framework 4.5.1 assemblies should not be called from an app that targets an earlier version of .NET Framework, such as .NET Framework 4.5.

    注意

    .NET framework 4.5.1 及 .NET Framework 4.5 在此處僅用於示範。.NET Framework 4.5.1 and .NET Framework 4.5 are used here only as examples. 本文所述的原則適用于以較新版本 .NET Framework 為目標的任何應用程式,而不是安裝在執行的系統上。The principle described applies to any app that targets a later version of .NET Framework than the one installed on the system on which it's running.

.NET Framework 中的某些變更可能需要變更您的應用程式程式碼;使用 .NET Framework 4.5 或更新版本執行現有的應用程式之前,請先參閱 應用程式相容性Some changes in .NET Framework may require changes to your app code; see Application Compatibility before you run your existing apps with .NET Framework 4.5 or later versions. 如需安裝目前版本的詳細資訊,請參閱安裝適用於開發人員的 .NET FrameworkFor more information about installing the current version, see Install the .NET Framework for developers. 如需 .NET Framework 支援的相關資訊,請參閱 .NET 網站上的 .NET Framework 官方支援原則For information about support for the .NET Framework, see .NET Framework official support policy on the .NET website.

較舊版本的備註Remarks for older versions

.NET Framework 版本 2.0、3.0 和 3.5 使用相同版本的 CLR (CLR 2.0) 建置。.NET Framework versions 2.0, 3.0, and 3.5 are built with the same version of the CLR (CLR 2.0). 這些版本代表單一安裝的連續執行層。These versions represent successive layers of a single installation. 每個版本都是以累加方式建置於舊版之上。Each version is built incrementally on top of the earlier versions. 您無法在電腦上並存執行版本2.0、3.0 和3.5。It's not possible to run versions 2.0, 3.0, and 3.5 side by side on a computer. 當您安裝 3.5 版時,會自動取得 2.0 和 3.0 執行層,而針對 2.0、3.0 和 3.5 版所建置的應用程式全都可以在 3.5 版上執行。When you install version 3.5, you get the 2.0 and 3.0 layers automatically, and apps that were built for versions 2.0, 3.0, and 3.5 can all run on version 3.5. 不過,.NET Framework 4 結束此分層方法,且該版本和更新版本 (.NET Framework 4.5、4.5.1、4.5.2、4.6、4.6.1、4.6.2、4.7、4.7.1、4.7.2 和 4.8) 也代表單一安裝的連續層。However, .NET Framework 4 ends this layering approach, and it and later releases (.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, and 4.8) also represent successive layers of a single installation. 從 .NET Framework 4 開始,您可以使用同進程並存裝載,在單一進程中執行多個版本的 CLR。Starting with .NET Framework 4, you can use in-process, side by side hosting to run multiple versions of the CLR in a single process. 如需詳細資訊,請參閱組件和並存執行For more information, see Assemblies and Side-by-Side Execution.

此外,如果您的應用程式以2.0、3.0 或3.5 版為目標,則您的使用者可能需要在 Windows 8、Windows 8.1 或 Windows 10 電腦上啟用 .NET Framework 3.5,才能執行您的應用程式。In addition, if your app targets version 2.0, 3.0, or 3.5, your users may be required to enable .NET Framework 3.5 on a Windows 8, Windows 8.1, or Windows 10 computer before they can run your app. 如需詳細資訊,請參閱在 Windows 10、Windows 8.1 及 Windows 8 上安裝 .NET Framework 3.5For more information, see Install the .NET Framework 3.5 on Windows 10, Windows 8.1, and Windows 8.

後續步驟Next steps

另請參閱See also