Overview of .NET Framework
.NET Framework is developed by Microsoft, a company dedicated to agile software development, rapid application development, platform independence and network transparency Software development platform.
Composition of .NET Framework
.NET Framework has two main components: common language runtime and .NET Framework class library.
.NET Framework class library
.NET Framework class library is a collection of reusable types that is tightly integrated with the common language runtime. This class library is object-oriented and provides your own managed code types from which functions can be derived. The .NET Framework type can complete a number of common programming tasks (including tasks such as string management, database connection, and file access). In addition to these common tasks, the class library also includes types that support a variety of dedicated development programs:
- Console applications.
- Windows GUI applications (Windows Forms).
- Windows Presentation Foundation (WPF) application.
- ASP.NET application.
- Web services.
- Windows service.
- Service-oriented applications using Windows Communication Foundation (WCF).
- Workflow-enabled application using Windows Workflow Foundation (WF).
Managed code and unmanaged code
Code developed using a language compiler based on the common language runtime is called managed code, otherwise, it is unmanaged code;< /p>
Managed code has many advantages, such as: cross-language integration, cross-language exception handling, enhanced security, version control and deployment support, simplified component interaction model, debugging and analysis services, etc.
Steps to create a .NET application:
(1) Use a certain .NET compatible language (such as C#) to write the application code.
(2) Compile the code into CIL and store it in the assembly.
(3) When executing the code, the JIT compiler must first be used to compile the code into native code.
(4) Run native code and other applications or processes in the managed CLR environment.
Integrated Development Environment (IDE for short)
IDE usually includes programming language editors, automatic creation tools, debuggers, and some IDEs also include compilers\interpreters, such as Microsoft Visual Studio, some are not included, such as Eclipse, these IDEs implement code compilation by calling third-party compilers. Many modern IDEs that support object-oriented also include category browsers, object viewers, and object structure diagrams.
The role of .NET Framework
. The NET runtime environment, similar to the runtime library, must be installed on the computer to run .NET thing. Specifically, it is the internal Windows components that support the generation and operation of next-generation applications and XML Web services. .NET Framework aims to achieve the following goals:
Provide a consistent object-oriented programming environment, regardless of whether the object code is stored and executed locally, It is still executed locally but distributed on the Internet, or executed remotely.
Provide a code execution environment that minimizes software deployment and version control conflicts.
Provide a code execution environment that can improve the execution security of code (including code created by unknown or incompletely trusted third parties).
Provide a code execution environment that can eliminate the performance problems of the scripting environment or the interpretation environment.