.NET Framework

From wiki.gis.com
Jump to: navigation, search
.NET Framework
.Net Framework Logo
Developer(s) Microsoft
Stable release 3.5.30729.1 (3.5 SP1) / 2008-08-11; 15 years ago
Preview release 4.0 (4.0 B1) / 2009-05-20; 14 years ago
Operating system Windows NT 4.0, Windows 98 and above
Type Software framework
License MS-EULA, BCL under Microsoft Reference License[1]
Website msdn.microsoft.com/netframework

The Microsoft .NET Framework is a software framework that can be installed on computers running Microsoft Windows operating systems. It includes a large library of coded solutions to common programming problems and a virtual machine that manages the execution of programs written specifically for the framework. The .NET Framework is a Microsoft offering and is intended to be used by most new applications created for the Windows platform.

The framework's Base Class Library provides a large range of features including user interface, data and data access, database connectivity, cryptography, web application development, numeric algorithms, and network communications. The class library is used by programmers, who combine it with their own code to produce applications.

Programs written for the .NET Framework execute in a software environment that manages the program's runtime requirements. Also part of the .NET Framework, this runtime environment is known as the Common Language Runtime (CLR). The CLR provides the appearance of an application virtual machine so that programmers need not consider the capabilities of the specific CPU that will execute the program. The CLR also provides other important services such as security, memory management, and exception handling. The class library and the CLR together constitute the .NET Framework.

Version 3.0 of the .NET Framework is included with Windows Server 2008 and Windows Vista. The current version of the framework can also be installed on Windows XP and the Windows Server 2003 family of operating systems.[2] A reduced version of the .NET Framework, the .NET Compact Framework, is also available on Windows Mobile platforms, including smartphones. Version 4.0 of the framework was released as a public Beta on 20 May 2009.[3]

Principal design features

Because interaction between new and older applications is commonly required, the .NET Framework provides means to access functionality that is implemented in programs that execute outside the .NET environment. Access to M components is provided in the System.Runtime.InteropServices and System.EnterpriseServices namespaces of the framework; access to other functionality is provided using the P/Invoke feature.
Common Runtime Engine 
The Common Language Runtime (CLR) is the virtual machine component of the .NET framework. All .NET programs execute under the supervision of the CLR, guaranteeing certain properties and behaviors in the areas of memory management, security, and exception handling.
Language Independence 
The .NET Framework introduces a Common Type System, or CTS. The CTS specification defines all possible datatypes and programming constructs supported by the CLR and how they may or may not interact with each other. Because of this feature, the .NET Framework supports the exchange of instances of types between programs written in any of the .NET languages. This is discussed in more detail in Microsoft .NET Languages.
Base Class Library 
The Base Class Library (BCL), part of the Framework Class Library (FCL), is a library of functionality available to all languages using the .NET Framework. The BCL provides classes which encapsulate a number of common functions, including file reading and writing, graphic rendering, database interaction and XML document manipulation.
Simplified Deployment 
The .NET framework includes design features and tools that help manage the installation of computer software to ensure that it does not interfere with previously installed software, and that it conforms to security requirements.
The design is meant to address some of the vulnerabilities, such as buffer overflows, that have been exploited by malicious software. Additionally, .NET provides a common security model for all applications.
The design of the .NET Framework allows it to theoretically be platform agnostic, and thus cross-platform compatible. That is, a program written to use the framework should run without change on any type of system for which the framework is implemented. Microsoft's commercial implementations of the framework cover Windows, Windows CE, and the Xbox 360.[4] In addition, Microsoft submits the specifications for the Common Language Infrastructure (which includes the core class libraries, Common Type System, and the Common Intermediate Language),[5][6][7] the C# language,[8] and the C++/CLI language[9] to both ECMA and the ISO, making them available as open standards. This makes it possible for third parties to create compatible implementations of the framework and its languages on other platforms.


Visual overview of the Common Language Infrastructure (CLI)

Common Language Infrastructure (CLI)

The purpose of the Common Language Infrastructure, or CLI, is to provide a language-neutral platform for application development and execution, including functions for exception handling, garbage collection, security, and interoperability. By implementing the core aspects of the .NET Framework within the scope of the CLI, this functionality will not be tied to a single language but will be available across the many languages supported by the framework. Microsoft's implementation of the CLI is called the Common Language Runtime, or CLR.


The CIL code is housed in .NET assemblies. As mandated by specification, assemblies are stored in the Portable Executable (PE) format, common on the Windows platform for all DLL and EXE files. The assembly consists of one or more files, one of which must contain the manifest, which has the metadata for the assembly. The complete name of an assembly (not to be confused with the filename on disk) contains its simple text name, version number, culture, and public key token. The public key token is a unique hash generated when the assembly is compiled, thus two assemblies with the same public key token are guaranteed to be identical from the point of view of the framework. A private key can also be specified known only to the creator of the assembly and can be used for strong naming and to guarantee that the assembly is from the same author when a new version of the assembly is compiled (required to add an assembly to the Global Assembly Cache).


All CIL is self-describing through .NET metadata. The CLR checks the metadata to ensure that the correct method is called. Metadata is usually generated by language compilers but developers can create their own metadata through custom attributes. Metadata contains information about the assembly, and is also used to implement the reflective programming capabilities of .NET Framework.


.NET has its own security mechanism with two general features: Code Access Security (CAS), and validation and verification. Code Access Security is based on evidence that is associated with a specific assembly. Typically the evidence is the source of the assembly (whether it is installed on the local machine or has been downloaded from the intranet or Internet). Code Access Security uses evidence to determine the permissions granted to the code. Other code can demand that calling code is granted a specified permission. The demand causes the CLR to perform a call stack walk: every assembly of each method in the call stack is checked for the required permission; if any assembly is not granted the permission a security exception is thrown.

When an assembly is loaded the CLR performs various tests. Two such tests are validation and verification. During validation the CLR checks that the assembly contains valid metadata and CIL, and whether the internal tables are correct. Verification is not so exact. The verification mechanism checks to see if the code does anything that is 'unsafe'. The algorithm used is quite conservative; hence occasionally code that is 'safe' does not pass. Unsafe code will only be executed if the assembly has the 'skip verification' permission, which generally means code that is installed on the local machine.

.NET Framework uses appdomains as a mechanism for isolating code running in a process. Appdomains can be created and code loaded into or unloaded from them independent of other appdomains. This helps increase the fault tolerance of the application, as faults or crashes in one appdomain do not affect rest of the application. Appdomains can also be configured independently with different security privileges. This can help increase the security of the application by isolating potentially unsafe code. The developer, however, has to split the application into subdomains; it is not done by the CLR.

Class library

Namespaces in the BCL[10]
System. CodeDom
System. Collections
System. Diagnostics
System. Globalization
System. IO
System. Resources
System. Text
System. Text.RegularExpressions

The .NET Framework includes a set of standard class libraries. The class library is organized in a hierarchy of namespaces. Most of the built in APIs are part of either System.* or Microsoft.* namespaces. These class libraries implement a large number of common functions, such as file reading and writing, graphic rendering, database interaction, and XML document manipulation, among others. The .NET class libraries are available to all .NET languages. The .NET Framework class library is divided into two parts: the Base Class Library and the Framework Class Library.

The Base Class Library (BCL) includes a small subset of the entire class library and is the core set of classes that serve as the basic API of the Common Language Runtime.[10] The classes in mscorlib.dll and some of the classes in System.dll and System.core.dll are considered to be a part of the BCL. The BCL classes are available in both .NET Framework as well as its alternative implementations including .NET Compact Framework, Microsoft Silverlight and Mono.

The Framework Class Library (FCL) is a superset of the BCL classes and refers to the entire class library that ships with .NET Framework. It includes an expanded set of libraries, including WinForms, ADO.NET, .NET, Language Integrated Query, Windows Presentation Foundation, Windows Communication Foundation among others. The FCL is much larger in scope than standard libraries for languages like C++, and comparable in scope to the standard libraries of Java.

Memory management

The .NET Framework CLR frees the developer from the burden of managing memory (allocating and freeing up when done); instead it does the memory management itself. To this end, the memory allocated to instantiations of .NET types (objects) is done contiguously[11] from the managed heap, a pool of memory managed by the CLR. As long as there exists a reference to an object, which might be either a direct reference to an object or via a graph of objects, the object is considered to be in use by the CLR. When there is no reference to an object, and it cannot be reached or used, it becomes garbage. However, it still holds on to the memory allocated to it. .NET Framework includes a garbage collector which runs periodically, on a separate thread from the application's thread, that enumerates all the unusable objects and reclaims the memory allocated to them.

The .NET Garbage Collector (GC) is a non-deterministic, compacting, mark-and-sweep garbage collector. The GC runs only when a certain amount of memory has been used or there is enough pressure for memory on the system. Since it is not guaranteed when the conditions to reclaim memory are reached, the GC runs are non-deterministic. Each .NET application has a set of roots, which are pointers to objects on the managed heap (managed objects). These include references to static objects and objects defined as local variables or method parameters currently in scope, as well as objects referred to by CPU registers.[11] When the GC runs, it pauses the application, and for each object referred to in the root, it recursively enumerates all the objects reachable from the root objects and marks them as reachable. It uses .NET metadata and reflection to discover the objects encapsulated by an object, and then recursively walk them. It then enumerates all the objects on the heap (which were initially allocated contiguously) using reflection. All objects not marked as reachable are garbage.[11] This is the mark phase.[12] Since the memory held by garbage is not of any consequence, it is considered free space. However, this leaves chunks of free space between objects which were initially contiguous. The objects are then compacted together, by using memcpy[12] to copy them over to the free space to make them contiguous again.[11] Any reference to an object invalidated by moving the object is updated to reflect the new location by the GC.[12] The application is resumed after the garbage collection is over.

The GC used by .NET Framework is actually generational.[13] Objects are assigned a generation; newly created objects belong to Generation 0. The objects that survive a garbage collection are tagged as Generation 1, and the Generation 1 objects that survive another collection are Generation 2 objects. The .NET Framework uses up to Generation 2 objects.[13] Higher generation objects are garbage collected less frequently than lower generation objects. This helps increase the efficiency of garbage collection, as older objects tend to have a larger lifetime than newer objects.[13] Thus, by removing older (and thus more likely to survive a collection) objects from the scope of a collection run, fewer objects need to be checked and compacted.[13]

Standardization and licensing

In August 2000, Microsoft, Hewlett-Packard, and Intel worked to standardize CLI and the C# programming language. By December 2001, both were ratified ECMA standards (ECMA 335 and ECMA 334). ISO followed in April 2003 - the current version of the ISO standards are ISO/IEC 23271:2006 and ISO/IEC 23270:2006.[14][15]

While Microsoft and their partners hold patents for the CLI and C#, ECMA and ISO require that all patents essential to implementation be made available under "reasonable and non-discriminatory terms". In addition to meeting these terms, the companies have agreed to make the patents available royalty-free.

However, this does not apply for the part of the .NET Framework which is not covered by the ECMA/ISO standard, which includes Windows Forms, ADO.NET, and .NET. Patents that Microsoft holds in these areas may deter non-Microsoft implementations of the full framework[16].

On 3 October 2007, Microsoft announced that much of the source code for the .NET Framework Base Class Library (including .NET, ADO.NET, and Windows Presentation Foundation) was to have been made available with the final release of Visual Studio 2008 towards the end of 2007 under the shared source Microsoft Reference License.[1] The source code for other libraries including Windows Communication Foundation (WCF), Windows Workflow Foundation (WF), and Language Integrated Query (LINQ) were to be added in future releases. Being released under the non Open-source Microsoft Reference License means this source code is made available for debugging purpose only, primarily to support integrated debugging of the BCL in Visual Studio.


Microsoft started development on the .NET Framework in the late 1990s originally under the name of Next Generation Windows Services (NGWS). By late 2000 the first beta versions of .NET 1.0 were released.[17]

The .NET Framework stack.
Version Version Number Release Date Visual Studio Default in Windows
1.0 1.0.3705.0 2002-02-13 Visual Studio .NET
1.1 1.1.4322.573 2003-04-24 Visual Studio .NET 2003 Windows Server 2003
2.0 2.0.50727.42 2005-11-07 Visual Studio 2005
3.0 3.0.4506.30 2006-11-06 Windows Vista, Windows Server 2008
3.5 3.5.21022.8 2007-11-19 Visual Studio 2008 Windows 7, Windows Server 2008 R2
4.0 Beta 1 2009-05-20 Visual Studio 2010

A more complete listing of the releases of the .NET Framework may be found on the .NET Framework version list.

.NET Framework 1.0

The old .NET Framework logo

This is the first release of the .NET Framework, released on 13 February 2002 and available for Windows 98, Me, NT 4.0, 2000, and XP. Mainstream support by Microsoft for this version ended 10 July 2007, and extended support ended 14 July 2009.[18]

.NET Framework 1.1

This is the first major .NET Framework upgrade. It is available on its own as a redistributable package or in a software development kit, and was published on 3 April 2003. It is also part of the second release of Microsoft Visual Studio .NET (released as Visual Studio .NET 2003). This is the first version of the .NET Framework to be included as part of the Windows operating system, shipping with Windows Server 2003. Mainstream support for .NET Framework 1.1 ended on 14 October 2008, and extended support ends on 8 October 2013. Since .NET 1.1 is a component of Windows Server 2003, extended support for .NET 1.1 on Server 2003 will run out with that of the OS - currently 14 July 2015.

Changes in 1.1 on comparison with 1.0

  • Built-in support for mobile .NET controls. Previously available as an add-on for .NET Framework, now part of the framework.
  • Security changes - enable Windows Forms assemblies to execute in a semi-trusted manner from the Internet, and enable Code Access Security in ASP.NET applications.
  • Built-in support for ODBC and Oracle databases. Previously available as an add-on for .NET Framework 1.0, now part of the framework.
  • .NET Compact Framework - a version of the .NET Framework for small devices.
  • Internet Protocol version 6 (IPv6) support.
  • Numerous API changes.

.NET Framework 2.0

Released with Visual Studio 2005, Microsoft SQL Server 2005, and BizTalk 2006.

  • The 2.0 Redistributable Package can be downloaded for free from Microsoft, and was published on 22 January 2006.
  • The 2.0 Software Development Kit (SDK) can be downloaded for free from Microsoft.
  • It is included as part of Visual Studio 2005 and Microsoft SQL Server 2005.
  • Version 2.0 without any Service Pack is the last version with support for Windows 98 and Windows Me. Version 2.0 with Service Pack 2 is the last version with official support for Windows 2000 although there have been some unofficial workarounds published online to use a subset of the functionality from Version 3.5 in Windows 2000.[19] Version 2.0 with Service Pack 2 requires Windows 2000 with SP4 plus KB835732 or KB891861 update, Windows XP with SP2 or later and Windows Installer 3.1 (KB893803-v2).
  • It shipped with Windows Server 2003 R2 (not installed by default).

Changes in 2.0 in comparison with 1.1

  • Numerous API changes.
  • A new hosting API for native applications wishing to host an instance of the .NET runtime. The new API gives a fine grain control on the behavior of the runtime with regards to multithreading, memory allocation, assembly loading and more (detailed reference). It was initially developed to efficiently host the runtime in Microsoft SQL Server, which implements its own scheduler and memory manager.
  • Full 64-bit support for both the x64 and the IA64 hardware platforms.
  • Language support for generics built directly into the .NET CLR.
  • Many additional and improved ASP.NET web controls.
  • New data controls with declarative data binding.
  • New personalization features for ASP.NET, such as support for themes, skins and webparts.
  • .NET Micro Framework - a version of the .NET Framework related to the Smart Personal Objects Technology initiative.
  • Partial classes
  • Anonymous methods
  • Data Tables

.NET Framework 3.0

.NET Framework 3.0, formerly called WinFX,[20] was released on 21 November 2006. It includes a new set of managed code APIs that are an integral part of Windows Vista and Windows Server 2008 operating systems. It is also available for Windows XP SP2 and Windows Server 2003 as a download. There are no major architectural changes included with this release; .NET Framework 3.0 uses the Common Language Runtime of .NET Framework 2.0.[21] Unlike the previous major .NET releases there was no .NET Compact Framework release made as a counterpart of this version.

.NET Framework 3.0 consists of four major new components:

  • Windows Presentation Foundation (WPF), formerly code-named Avalon; a new user interface subsystem and API based on XML and vector graphics, which uses 3D computer graphics hardware and Direct3D technologies. See WPF SDK for developer articles and documentation on WPF.
  • Windows Communication Foundation (WCF), formerly code-named Indigo; a service-oriented messaging system which allows programs to interoperate locally or remotely similar to web services.
  • Windows Workflow Foundation (WF) allows for building of task automation and integrated transactions using workflows.
  • Windows CardSpace, formerly code-named InfoCard; a software component which securely stores a person's digital identities and provides a unified interface for choosing the identity for a particular transaction, such as logging in to a website.

.NET Framework 3.5

Version 3.5 of the .NET Framework was released on 19 November 2007, but it is not included with Windows Server 2008. As with .NET Framework 3.0, version 3.5 uses the CLR of version 2.0. In addition, it installs .NET Framework 2.0 SP1, (installs .NET Framework 2.0 SP2 with 3.5 SP1) and .NET Framework 3.0 SP1 (installs .NET Framework 3.0 SP2 with 3.5 SP1), which adds some methods and properties to the BCL classes in version 2.0 which are required for version 3.5 features such as Language Integrated Query (LINQ). These changes do not affect applications written for version 2.0, however.[22]

As with previous versions, a new .NET Compact Framework 3.5 was released in tandem with this update in order to provide support for additional features on Windows Mobile and Windows Embedded CE devices.

The source code of the Base Class Library in this version has been partially released (for debugging reference only) under the Microsoft Reference Source License.[1]

Changes since version 3.0

  • New language features in C# 3.0 and VB.NET 9.0 compiler
  • Adds support for expression trees and lambda methods
  • Extension methods
  • Expression trees to represent high-level source code at runtime.[23]
  • Anonymous types with static type inference
  • Language Integrated Query (LINQ) along with its various providers
    • LINQ to Objects
    • LINQ to XML
    • LINQ to SQL
  • Paging support for ADO.NET
  • ADO.NET synchronization API to synchronize local caches and server side datastores
  • Asynchronous network I/O API[23] .
  • Peer-to-peer networking stack, including a managed PNRP resolver[24]
  • Managed wrappers for Windows Management Instrumentation and Active Directory APIs[25]
  • Enhanced WCF and WF runtimes, which let WCF work with POX and JSON data, and also expose WF workflows as WCF services.[26] WCF services can be made stateful using the WF persistence model.[23]
  • Support for HTTP pipelining and syndication feeds.[26]
  • ASP.NET AJAX is included
  • New System.CodeDom namespace.

Service Pack 1

The .NET Framework 3.5 Service Pack 1 was released on 11 August 2008. This release adds new functionality and provides performance improvements under certain conditions,[27] especially with WPF where 20-45% improvements are expected. Two new data service components have been added, the ADO.NET Entity Framework and ADO.NET Data Services. Two new assemblies for web development, System.Web.Abstraction and System.Web.Routing, have been added; these are used in the ASP.NET MVC Framework and, reportedly, will be utilized in the future release of ASP.NET Forms applications. Service Pack 1 is included with SQL Server 2008 and Visual Studio 2008 Service Pack 1.

There is also a new variant of the .NET Framework, called the ".NET Framework Client Profile", which at 28 MB is a lot smaller than the full framework and only installs components that are the most relevant to desktop applications.[28] However, the Client Profile amounts to this size only if using the online installer. When using the off-line installer, the download size is still 250 MB.[29]

.NET Framework 4.0

Microsoft announced the .NET Framework 4.0 on 29 September 2008. The Public Beta was released on 20 May 2009.[3] Some focuses of this release are:

  • Parallel Extensions to improve support for parallel computing, which target multi-core or distributed systems.[30] To this end, they plan to include technologies like PLINQ (Parallel LINQ),[31] a parallel implementation of the LINQ engine, and Task Parallel Library, which exposes parallel constructs via method calls.[32]
  • Visual Basic and C# languages innovations such as statement lambdas, implicit line continuations, dynamic dispatch, named parameters, and optional parameters.
  • Full support for IronPython, IronRuby, and F#.[33]
  • Support for a subset of the .NET Framework and .NET with the "Server Core" variant of Windows Server 2008 R2.[34]
  • Support for Code Contracts.
  • Inclusion of the Oslo modelling platform, along with the M programming language.[35]

In 28 July 2009, a second release of the .NET Framework 4.0 beta was made available with experimental software transactional memory support.[36] Whether this functionality will be available in the final version of the framework has not been confirmed.

In conjunction with .NET Framework 4.0, Microsoft will offer a set of enhancements, codenamed Dublin, for Windows Server 2008 application server capabilities.[37][38] Dublin will extend IIS to be a "standard host" for applications that use either WCF or WF.[38]

.NET vs. Java and Java EE

The CLI and .NET languages such as C# and VB have many similarities to Sun's JVM and Java. They are strong competitors. Both are based on a virtual machine model that hides the details of the computer hardware on which their programs run. Both use their own intermediate byte-code, Microsoft calling theirs Common Intermediate Language (CIL; formerly MSIL) and Sun calling theirs Java bytecode. On .NET the byte-code is always compiled before execution, either Just In Time (JIT) or in advance of execution using the ngen.exe utility. With Java the byte-code is either interpreted, compiled in advance, or compiled JIT. Both provide extensive class libraries that address many common programming requirements and address many security issues that are present in other approaches. The namespaces provided in the .NET Framework closely resemble the platform packages in the Java EE API Specification in style and invocation.

.NET in its complete form (i.e., Microsoft's implementation, described in the Standardization and licensing section of this article) can only be installed on computers running a Microsoft Windows operating system[39][40][41] whereas Java in its entirety can be installed on computers running any one of a variety of operating systems such as Linux, Solaris, Mac OS or Windows.[42] From its beginning .NET has supported multiple programming languages and at its core remains platform agnostic and standardized so that other vendors can implement it on other platforms (although Microsoft's implementation only targets Windows, Windows CE, and Xbox platforms). The Java platform was initially built to support only the Java language on many operating system platforms under the slogan "Write once, run anywhere." Other programming languages have been implemented on the Java Virtual Machine[43] but are less widely used (see JVM languages).

Sun's reference implementation of Java (including the class library, the compiler, the virtual machine, and the various tools associated with the Java Platform) is open source under the GNU GPL license with Classpath exception.[44] The source code for the .NET framework base class library is available for reference purposes only under the Microsoft Reference License.[45][46]

The third-party Mono Project, sponsored by Novell, has been developing an open source implementation of the ECMA standards that are part of .NET Framework, as well as most of the other non-ECMA standardized libraries in Microsoft's .NET. The Mono implementation is meant to run on Linux, Solaris, Mac OS X, BSD, HP-UX, and Windows platforms. Mono includes the CLR, the class libraries, and compilers for C# and VB.NET. The current version supports all the APIs in version 2.0 of Microsoft's .NET. Full support exists for C# 3.0 LINQ to Objects and LINQ to Xml.[47]


Some concerns and criticism relating to .NET include:

  • Applications running in a managed environment tend to require more system resources than similar applications that access machine resources more directly.
  • Since CIL is easier to reverse-engineer than native code, there is concern over possible loss of trade secrets and the bypassing of license control mechanisms. Many obfuscation techniques already developed can help to prevent this; Microsoft's Visual Studio 2005 (and newer) includes such a tool. All "managed" languages have this limitation, including Java.
  • In a managed environment the regularly occurring garbage collection for reclaiming memory suspends execution of the application for an unpredictable lapse of time (typically no more than a few milliseconds, but in memory-constrained systems can be much longer). This makes such environments unsuitable for some applications such as those that must respond to events with predictable timing (see real-time computing).
  • Newer versions of the framework (3.5 and up) are not pre-installed in versions of Windows below Windows 7. For this reason, applications must lead users without the framework through a procedure to install it. Some developers have expressed concerns about the large size and reliability of .NET framework runtime installers for end-users. The size is around 54 MB for .NET 3.0, 197 MB for .NET 3.5, and 250 MB for .NET 3.5 SP1 (while using web installer the typical download for Windows XP is around 50 MB, for Windows Vista - 20 MB).
    • The first service pack for version 3.5 mitigates this concern by offering a lighter-weight client-only subset of the full .NET Framework. Two significant limitations should be noted, though.[48] Firstly, the client-only subset is only an option on an existing Windows XP SP2 system that currently has no other version of the .NET framework installed. In all other scenarios, the client-only installer will install the full version of the .NET Framework 3.5 SP1. Secondly, the client-only framework does not have a 64-bit option.
  • The .NET framework currently does not provide support for calling Streaming SIMD Extensions (SSE) via managed code. However, Mono has provided support for SIMD Extensions as of version 2.2 within the Mono.Simd namespace; Mono's lead developer Miguel de Icaza has expressed hope that this SIMD support will be adopted by the CLR ECMA standard.[49] Streaming SIMD Extensions have been available in CPUs since the introduction of the Pentium III.

Alternative implementations

The Microsoft .NET Framework is the predominant implementation of .NET technologies. Other implementations for parts of the framework exist. Since the runtime engine is described by an ECMA/ISO specification, other implementations of it are unencumbered by patent issues. It is more difficult to develop alternatives to the base class library (BCL), which is not described by an open standard and may be subject to copyright restrictions. Additionally, parts of the BCL have Windows-specific functionality and behavior, so implementation on non-Windows platforms can be problematic.

Some alternative implementations of parts of the framework are listed here.

  • Microsoft's Shared Source Common Language Infrastructure is a non-free shared source implementation of the CLR component of the .NET Framework. However, the last version only runs on Microsoft Windows XP SP2, and does not contain all features of version 2.0 of the .NET Framework.
  • Microsoft's .NET Micro Framework is a .NET platform for extremely resource-constrained devices. It includes a small version of the .NET CLR and supports development in C# and debugging (in an emulator or on hardware), both using Microsoft Visual Studio. It also features a subset of the .NET base class libraries (about 70 classes with about 420 methods), a GUI framework loosely based on Windows Presentation Foundation, and additional libraries specific to embedded applications.
  • Mono is an implementation of the CLI and portions of the .NET Base Class Library (BCL), and provides additional functionality. It is dual-licensed under free software and proprietary software licenses. Mono is being developed by Novell, Inc. It includes support for ASP.NET, ADO.NET, and evolving support for Windows Forms libraries. It also includes a C# compiler, and a VB.NET compiler is in pre-beta form.
  • CrossNet is an implementation of the CLI and portions of the .NET Base Class Library (BCL). It is free software. It parses .NET assemblies and generates unmanaged C++ code that can be compiled and linked within any ANSI C++ application on any platform.
  • .NET for Symbian .NET Compact Framework implementation for Symbian (S60)
  • Portable.NET (part of DotGNU) provides an implementation of the Common Language Infrastructure (CLI), portions of the .NET Base Class Library (BCL), and a C# compiler. It supports a variety of CPUs and operating systems.

See also

  • Comparison of the Java and .NET platforms
  • COM Interop
  • Windows API
Components and libraries
  • Microsoft Enterprise Library - A collection of supplemental libraries for .NET.
  • Web Services Enhancements


  1. 1.0 1.1 1.2 Scott Guthrie. "Releasing the Source Code for the NET Framework". http://weblogs.asp.net/scottgu/archive/2007/10/03/releasing-the-source-code-for-the-net-framework-libraries.aspx. Retrieved 2008-06-01. 
  2. Microsoft. "Microsoft .NET Framework 3.5 Administrator Deployment Guide". http://msdn.microsoft.com/library/cc160717.aspx. Retrieved 2008-06-26. 
  3. 3.0 3.1 S. Somasegar. "Visual Studio 2010 and .NET FX 4 Beta 1 ships!". Archived from the original on 2009-05-27. http://www.webcitation.org/5h5lV7362. Retrieved 2009-05-25. 
  4. Microsoft has also previously released implementations of .NET 1.0 that could run on some Unix-based platforms such as FreeBSD and Mac OS X, but license restrictions limited these to educational use only, and they are no more available since .NET 1.1
  5. "ECMA 335 - Standard ECMA-335 Common Language Infrastructure (CLI)". ECMA. 2006-06-01. http://www.ecma-international.org/publications/standards/Ecma-335.htm. Retrieved 2008-06-01. 
  6. ISO/IEC 23271:2006
  7. "Technical Report TR/84 Common Language Infrastructure (CLI) - Information Derived from Partition IV XML File". ECMA. 2006-06-01. http://www.ecma-international.org/publications/techreports/E-TR-084.htm. 
  8. "ECMA-334 C# Language Specification". ECMA. 2006-06-01. http://www.ecma-international.org/publications/standards/Ecma-334.htm. 
  9. "Standard ECMA-372 C++/CLI Language Specification". ECMA. 2005-12-01. http://www.ecma-international.org/publications/standards/Ecma-372.htm. 
  10. 10.0 10.1 "Base Class Library". http://msdn.microsoft.com/netframework/aa569603.aspx. Retrieved 2008-06-01. 
  11. 11.0 11.1 11.2 11.3 "Garbage Collection: Automatic Memory Management in the Microsoft .NET Framework". Archived from the original on 2007-07-03. http://web.archive.org/web/20070703083608/http://msdn.microsoft.com/msdnmag/issues/1100/GCI/. Retrieved 2008-06-01. 
  12. 12.0 12.1 12.2 "Garbage collection in .NET". http://www.csharphelp.com/archives2/archive297.html. Retrieved 2008-06-01. 
  13. 13.0 13.1 13.2 13.3 "Garbage Collection—Part 2: Automatic Memory Management in the Microsoft .NET Framework". Archived from the original on 2007-06-26. http://web.archive.org/web/20070626080134/http://msdn.microsoft.com/msdnmag/issues/1200/GCI2/default.aspx. Retrieved 2008-06-01. 
  14. ISO/IEC 23271:2006 - Information technology - Common Language Infrastructure (CLI) Partitions I to VI
  15. ISO/IEC 23270:2006 - Information technology - Programming languages - C#
  16. "Microsoft's Empty Promise". Free Software Foundation. 2009-07-16. Archived from the original on 2009-08-05. http://www.webcitation.org/5io4tT8mO. Retrieved 2009-078-03. "However, there are several libraries that are included with Mono, and commonly used by applications like Tomboy, that are not required by the standard. And just to be clear, we're not talking about Windows-specific libraries like ASP.NET and Windows Forms. Instead, we're talking about libraries under the System namespace that provide common functionality programmers expect in modern programming languages" 
  17. "Framework Versions". http://ben.skyiv.com/clrversion.html. 
  18. "Microsoft Product Lifecycle Search". Microsoft. Archived from the original on 2009-09-05. http://www.webcitation.org/5jZfjU0F1. Retrieved 2008-01-25. 
  19. "Microsoft don". Archived from the original on 2009-04-19. http://www.webcitation.org/5g9t5nE7k. Retrieved 2009-03-05. 
  20. WinFX name change announcement
  21. ".NET Framework 3.0 Versioning and Deployment Q&A". http://msdn.microsoft.com/netframework/aa663314.aspx. Retrieved 2008-06-01. 
  22. "Catching RedBits differences in .NET 2.0 and .NET 2.0SP1". http://www.hanselman.com/blog/CommentView.aspx?guid=7cd75505-192f-4fef-b617-e47e1e2cb94b. Retrieved 2008-06-01. 
  23. 23.0 23.1 23.2 "What's New in the .NET Framework 3.5". http://msdn.microsoft.com/library/bb332048.aspx. Retrieved 2008-03-31. 
  24. Kevin Hoffman. "Orcas' Hidden Gem - The managed PNRP stack". http://dotnetaddict.dotnetdevelopersjournal.com/orcas_hidden_gem__the_managed_pnrp_stack.htm. Retrieved 2008-06-01. 
  25. ".NET Framework 3.5". http://www.danielmoth.com/Blog/2007/06/net-framework-35.html. Retrieved 2008-06-01. 
  26. 26.0 26.1 Matt Winkle. "WCF and WF in "Orcas"". http://blogs.msdn.com/mwinkle/archive/2007/02/28/wcf-and-wf-in-quot-orcas-quot.aspx. Retrieved 2008-06-01. 
  27. "Visual Studio 2008 Service Pack 1 and .NET Framework 3.5 Service Pack 1". http://msdn.microsoft.com/vstudio/products/cc533447.aspx. Retrieved 2008-09-07. 
  28. Justin Van Patten (21 May 2008). ".NET Framework Client Profile". BCL Team Blog. MSDN Blogs. http://blogs.msdn.com/bclteam/archive/2008/05/21/net-framework-client-profile-justin-van-patten.aspx. Retrieved 2008-09-30. 
  29. Jaime Rodriguez (20 August 2008). "Client profile explained..". http://blogs.msdn.com/jaimer/archive/2008/08/20/client-profile-explained.aspx. Retrieved 2009-02-15. 
  30. S. Somasegar. "The world of multi and many cores". http://blogs.msdn.com/somasegar/archive/2007/05/09/the-world-of-multi-and-many-cores.aspx. Retrieved 2008-06-01. 
  31. "Parallel LINQ: Running Queries On Multi-Core Processors". http://msdn.microsoft.com/magazine/cc163329.aspx. Retrieved 2008-06-02. 
  32. "Parallel Performance: Optimize Managed Code For Multi-Core Machines". http://msdn.microsoft.com/magazine/cc163340.aspx. Retrieved 2008-06-02. 
  33. "Visual Studio 2010, .NET 4.0 Ppt Presentation". authorSTREAM. 25 February 2009. http://www.authorstream.com/presentation/amrik-155782-new-features-vs-2010-net-4-0-visual-studio-dot-vb-10-education-ppt-powerpoint/. Retrieved 2009-03-02. 
  34. "PDC2008 Sessions Overview". Microsoft. 28 May 2008. http://www.microsoftpdc.com/Agenda/Sessions.aspx. Retrieved 2008-05-28. 
  35. SDTimes - Microsoft details Oslo's modeling language, tools
  36. "STM.NET on DevLabs". 27 July 2008. Archived from the original on 2009-08-10. http://www.webcitation.org/5iwEjbaov. Retrieved 2008-08-06. 
  37. "'Dublin' App Server coming to .NET 4.0". DevSource. http://www.devsource.com/c/a/Architecture/Dublin-App-Server-coming-toNET-40/. Retrieved 2009-04-27. 
  38. 38.0 38.1 ".NET Framework 4.0 and Dublin Application Server". MSDN Blogs. http://blogs.msdn.com/architectsrule/archive/2008/10/01/net-framework-4-0-and-dublin-application-server.aspx. Retrieved 2009-04-27. 
  39. ".Net Framework 1.0 Redistributable Requirements". MSDN. http://msdn.microsoft.com/library/ms994373.aspx. Retrieved 2007-04-22. 
  40. ".Net Framework 1.1 Redistributable Requirements". MSDN. http://msdn.microsoft.com/library/ms994377.aspx. Retrieved 2007-04-22. 
  41. ".Net Framework 2.0 Redistributable Requirements". MSDN. http://msdn.microsoft.com/library/aa480241.aspx. Retrieved 2007-04-22. 
  42. "JRE 5.0 Installation Notes". Sun Developer Network. http://java.sun.com/j2se/1.5.0/jre/install.html. Retrieved 2007-04-22. 
  43. "Languages for the Java VM". http://www.is-research.de/info/vmlanguages/. Retrieved 2008-07-07. 
  44. "Free and Open Source Java". Sun.com. http://www.sun.com/software/opensource/java/. Retrieved 2008-06-01. 
  45. "Releasing the source code for the .Net framework libraries". Scott Guthrie - Microsoft. http://weblogs.asp.net/scottgu/archive/2007/10/03/releasing-the-source-code-for-the-net-framework-libraries.aspx. 
  46. "Microsoft Reference License". Microsoft. http://www.microsoft.com/resources/sharedsource/licensingbasics/referencelicense.mspx. 
  47. "FAQ: General". Mono. 2006-12-20. http://www.mono-project.com/FAQ:_General. Retrieved 2008-06-01. 
  48. .NET Framework Client Profile Deployment Scenarios
  49. Mono's SIMD Support: Making Mono safe for Gaming

External links