.NET Framework 4 (or .NET 4) is the latest version of .NET software framework from Microsoft, which includes a large library of coded solutions to common programming algorithms and a virtual machine that manages the execution of programs written specifically for the framework. Microsoft has officially brought .NET Framework 4 out of beta or release candidate phase, and released as final RTM version. End-users must install .NET runtime to run apps based on it.
.NET Framework 4 provides the following new features and improvements:
- Improvements in Common Language Runtime (CLR) and Base Class Library (BCL)
- Performance improvement including better multicore support, background garbage collection, and profiler attach on server.
- New memory mapped file and numeric types.
- Easier debugging including dump debugging, Watson minidumps, mixed mode debugging for 64 bit and code contracts.
- Innovations in the Visual Basic and C# languages, for example statement lambdas, implicit line continuations, dynamic dispatch, and named/optional parameters.
- Improvements in Data Access and Modeling
- The Entity Framework enables developers to program against relational databases using .NET objects and Language Integrated Query (LINQ). It has many new features, including persistence ignorance and POCO support, foreign key associations, lazy loading, test-driven development support, functions in the model, and new LINQ operators. Additional features include better n-tier support with self-tracking entities, customizable code generation using T4 templates, model first development, an improved designer experience, better performance, and pluralization of entity sets.
- WCF Data Services is a component of the .NET Framework that enables you to create REST-based services and applications that use the Open Data Protocol (OData) to expose and consume data over the Web. WCF Data Services has many new features, including enhanced BLOB support, data binding, row count, feed customization, projections, and request pipeline improvements. Built-in integration with Microsoft Office 2010 now makes it possible to expose Microsoft Office SharePoint Server data as an OData feed and access that data feed by using the WCF Data Services client library.
- Enhancements to ASP.NET
- More control over HTML, element IDs and custom CSS that make it much easier to create standards-compliant and SEO-friendly web forms.
- New dynamic data features including new query filters, entity templates, richer support for Entity Framework 4, and validation and templating features that can be easily applied to existing web forms.
- Web forms support for new AJAX library improvements including built-in support for content delivery networks (CDNs).
- Improvements in Windows Presentation Foundation (WPF)
- Added support for Windows 7 multi-touch, ribbon controls, and taskbar extensibility features.
- Added support for Surface 2.0 SDK.
- New line-of-business controls including charting control, smart edit, data grid, and others that improve the experience for developers who build data centric applications.
- Improvements in performance and scalability.
- Visual improvements in text clarity, layout pixel snapping, localization, and interoperability.
- Improvements to Windows Workflow (WF) that enable developers to better host and interact with workflows. These include an improved activity programming model, an improved designer experience, a new flowchart modeling style, an expanded activity palette, workflow-rules integration, and new message correlation features. The .NET Framework 4 also offers significant performance gains for WF-based workflows.
- Improvements to Windows Communication Foundation (WCF) such as support for WCF Workflow Services enabling workflow programs with messaging activities, correlation support. Additionally, .NET Framework 4 provides new WCF features such as service discovery, routing service, REST support, diagnostics, and performance.
- Innovative new parallel-programming features such as parallel loop support, Task Parallel Library (TPL), Parallel LINQ (PLINQ), and coordination data structures which let developers harness the power of multi-core processors.
The .NET Framework 4 works side-by-side with any older and earlier versions of .NET Framework, such as .NET Framework 3.5 SP1, .NET Framework 3, .NET Framework 2 and .NET Framework 1.1. Applications that are built based on earlier version of .NET will continue to run properly as per normal based on targeted version by default. In fact, installing .NET 4 will also install all previous versions of .NET Framework conclusively for backward compatibility.
.NET Framework 4 is available for free download from Microsoft Download Center in the form of web installer, which requires Internet access during installation to download install the .NET Framework runtime components required to run on the target machine architecture and OS, or standalone installer redistributable package which can install in offline mode with no Internet access.
Download .NET Framework 4
Web Installer: dotNetFx40_Full_setup.exe (869 KB)
Redistributable Standalone Setup Installer: dotNetFx40_Full_x86_x64.exe (48.1 MB)
Microsoft .NET Framework 4 supports x86 (32-bit), x64 (64-bit) and ia64 system archictecture on Windows 7; Windows Server 2003 R2; Windows Server 2003 Service Pack 2; Windows Server 2008 R2; Windows Server 2008 SP2; Windows Vista SP2 and Windows XP SP3.