Home >Backend Development >C#.Net Tutorial >The difference between .net core and .net
The difference between .net core and .net
To put it simply, they are both implementations of the interfaces defined by .net standard, and they are all sons of .net standard.
C# is a programming language that allows you to create programs with new features in version 7.
.Net Standard is a rule (well, a standard) by which libraries should be built to understand each other.
Portable class libraries are special versions of libraries that can be used by .NetFramework or .Net Core.
.Net Core is a universal .Net-like framework with a different architecture, supporting .Net Standard starting from v1.6, so it cannot easily interact with earlier versions of .Net.
.Net 4.7 is the new version of .Net Framework which also supports .Net Standard 1.6 so it can interact with .Net Core applications.
The announced .Net Standard 2.0 will provide a common platform for .Net Framework, .Net Core, Xamarin and more to run on.
.NET Core & .NET Framework are both implementations of NET Standard Library. One is cross-platform, and the other is unique to Windows. In addition to implementing NET Standard Outside the Library, .NET Core and .NET Framework have their own unique implementations. .NET Standard Library is the key to cross-operating systems. It defines a set of interfaces, and each operating system has its own implementation. .NET Core can dynamically download the implementation of the current operating system through nuget, thus achieving cross-operating systems (cum Sharing code across operating systems). .NET Core relies more on Nuget, allowing local applications to dynamically download required class libraries during deployment. The .NET Framework needs to be pre-installed in the system.
In this way, the deployment of .NET Core is simpler, faster and lighter than the .NET Framework.ASP.NET Core exists in two forms:
ASP.NET Core Web Application (.NET Core)
ASP.NET, which depends on .NET Core, can only call the API of .NET Core and can run on multiple operating systems.
(You can see the Reference Manager in the lower half of the picture below, there is no library in the .NET Framework in the assemblies)ASP.NET Core Web Application(.NET Framework)
ASP.NET that depends on .NET Core & .NET Framework can call the API of .NET Core&.NET Framework and can only run under Windows
.NET Core & Mono
Mono is an implementation of the open source version of the .NET Framework. It is very similar to .NET Core in some features, such as open source and cross-operating systems. At present, .NET CORE will learn from Mono's experience and develop and eventually be able to run better on other operating systems besides Windows. In addition, Mone supports more App Models than .NET Core (such as Windows Forms).
The above is the detailed content of The difference between .net core and .net. For more information, please follow other related articles on the PHP Chinese website!