码迷,mamicode.com
首页 > Windows程序 > 详细

Windows 与 .net

时间:2016-02-06 01:48:28      阅读:388      评论:0      收藏:0      [点我收藏+]

标签:

原文地址:https://msdn.microsoft.com/en-us/library/bb822049(v=vs.110).aspx

 

NET Framework Versions and Dependencies

.NET Framework (current version)

Other Versions

技术分享

Each version of the .NET Framework contains the common language runtime (CLR), the base class libraries, and other managed libraries. This topic describes the key features of the .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.

技术分享Note

For information on downloading and installing the .NET Framework, see Installing the .NET Framework.

The following table summarizes .NET Framework version history and correlates each version with Visual Studio, Windows, and Windows Server. Note that Visual Studio provides multi-targeting, so you are not limited to the version of the .NET Framework that is listed.

Each new version of the .NET Framework retains features from the previous versions and adds new features. The CLR is identified by its own version number. The .NET Framework version number is incremented at each release, although the CLR version is not always incremented. For example, the .NET Framework 4, 4.5, and later releases include CLR 4, but the .NET Framework 2.0, 3.0, and 3.5 include CLR 2.0. (There was no version 3 of the CLR.)

See .NET Framework System Requirements for a complete list of supported operating systems. For downloads, see the installation guide. For determining which version(s) of the .NET Framework is installed on a computer, see How to: Determine Which .NET Framework Versions Are Installed.

In the table, the versions marked with * must be enabled in Control Panel (for Windows) or enabled through the Server Manager (for Windows Server).

.NET Framework version

CLR version

Features

Included in Visual Studio version

? Included in
+ Can be installed on
Windows

? Included in
+ Can be installed on
Windows Server

To determine installed .NET version

Net 4.6.1

4

  • Support for X509 certificates containing ECDSA

  • Always Encrypted support for hardware protected keys in ADO.NET

  • Spell checking improvements in WPF

  • More...

? 10 November Update

+ 10
+ 8.1
+ 8
+ 7

+ 2012 R2
+ 2012
+ 2008 R2 SP1
+ 2008 SP2

Use ReleaseDWORD:

  • 394254 (Windows 10 November Update)

  • 394271 (all other OS versions)

(seeinstructions)

.NET 4.6

4

  • Compilation using .NET Native

  • ASP.NET Core 5

  • Event tracing improvements

  • Support for page encodings

  • More...

2015, although some .NET libraries are available on NuGet. For more information see, The .NET Framework and Out-of-Band Releases.

? 10
+ 8.1
+ 8
+ 7
+ Vista

+ 2012 R2
+ 2012
+ 2008 R2 SP1
+ 2008 SP2

Use ReleaseDWORD:

  • 393295 (Windows 10)

  • 393297 (all other OS versions)

(seeinstructions)

4.5.2

4

  • New APIs for transactional systems and ASP.NET

  • System DPI resizing in Windows Forms controls

  • Profiling improvements

  • ETW and stress logging improvements

  • More...

-

+ 8.1
+ 8
+ 7
+ Vista

+ 2012 R2
+ 2012
+ 2008 R2 SP1
+ 2008 SP2

Use ReleaseDWORD: 379893
(seeinstructions)

4.5.1

4

  • Support for Windows Phone Store apps

  • Automatic binding redirection

  • Performance and debugging improvements

  • More...

2013

? 8.1
+ 8
+ 7
+ Vista

? 2012 R2
+ 2012
+ 2008 R2 SP1
+ 2008 SP2

Use ReleaseDWORD:

  • 378675 (Windows 8.1)

  • 378758 (all other)

(seeinstructions)

4.5

4

  • Support for Windows Store apps

  • WPF, WCF, WF, ASP.NET updates

  • More...

2012

? 8
+ 7
+ Vista

? 2012
+ 2008 R2 SP1
+ 2008 SP2

Use ReleaseDWORD: 378389
(seeinstructions)

4

4

  • Expanded base class libraries

  • Cross-platform development with Portable Class Library

  • MEF, DLR, code contracts

  • More...

2010

+ 7
+ Vista

+ 2008 R2 SP1
+ 2008 SP2
+ 2003

Seeinstructions

3.5

2.0

  • AJAX-enabled websites

  • LINQ

  • Dynamic data

  • More...

2008

? 10? 8.1*
? 8*
? 7
+ Vista

?2008 R2 SP1*
+ 2012 R2
+ 2012
+ 2008 SP2
+ 2003

Seeinstructions

3.0

2.0

  • WPF, WCF, WF, CardSpace

-

? Vista

? 2008 R2 SP1*
? 2008 SP2*
+ 2003

Seeinstructions

2.0

2.0

  • Generics

  • ASP.NET additions

  • More...

2005

-

? 2008 R2 SP1
? 2008 SP2
? 2003

Seeinstructions

1.1

1.1

  • ASP.NET and ADO.NET updates

  • Side-by-side execution

  • More...

2003

-

? 2003

Seeinstructions

1.0

1.0

First version of the .NET Framework.

Visual Studio .NET

-

-

Seeinstructions

In general, you should not uninstall any versions of the .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. You can load multiple versions of the .NET Framework on a single computer at the same time. This means that you can install the .NET Framework without having uninstall previous versions. For more information, see Getting Started with the .NET Framework.

Targeting and Running .NET Framework apps for version 4.5 and later

The .NET Framework 4.5 is an in-place update that replaces the .NET Framework 4 on your computer, and similarly, the .NET Framework 4.5.1 4.5.2, and 4.6 are in-place updates to the .NET Framework 4.5, which means that they use the same runtime version, but the assembly versions are updated and include new types and members. After you install one of these updates, your .NET Framework 4 or .NET Framework 4.5 apps should continue to run without requiring recompilation. However, the reverse is not true. We do not recommend running apps that target a later version of the .NET Framework on the .NET Framework 4.5. The following guidelines apply:

  • In Visual Studio 2013, you can choose the .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. This assembly or executable can then be used on any computer that has the .NET Framework 4.5, 4.5.1, 4.5.2, or 4.6 installed.

  • In Visual Studio, you can choose the .NET Framework 4.5.1 as the target framework for a project (this sets theGetReferenceAssemblyPaths.TargetFrameworkMoniker property) to compile the project as a .NET Framework 4.5.1 assembly or executable. This assembly or executable should be run only on computers that have the .NET Framework 4.5.1 installed. An executable that targets the .NET Framework 4.5.1 will be blocked from running on a computer that only has the .NET Framework 4.5 installed, and the user will be prompted to install the .NET Framework 4.5.1. In addition, .NET Framework 4.5.1 assemblies should not be called from a .NET Framework 4.5 app.

Some changes in the .NET Framework may require changes to your app code; see App Compatibility in the .NET Framework 4.5 before you run your existing apps with the .NET Framework 4.5 or later versions. For more information about installing the current version, see Installing the .NET Framework. For information about support for the .NET Framework, see Microsoft .NET Framework Support Lifecycle Policy on the Microsoft Support website.

Targeting and running apps for older versions

The .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. It is not possible to run versions 2.0, 3.0, and 3.5 side by side on a computer. 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. However, the .NET Framework 4 ends this layering approach. Starting with the .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, seeAssemblies and Side-by-Side Execution.

In addition, if your app targets version 2.0, 3.0, or 3.5, your users may be required to enable the .NET Framework 3.5 on a Windows 8 or Windows 8.1 computer before they can run your app. For more information, see Installing the .NET Framework 3.5 on Windows 8, Windows 8.1 and Windows 10.

Next steps

See Also

Version Compatibility in the .NET Framework
Microsoft .NET Framework Support Lifecycle Policy

Windows 与 .net

标签:

原文地址:http://www.cnblogs.com/xiaobin-hlj80/p/5183773.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!