ASP. NET Core Brief Introduction Tutorial (1)

  • 2021-09-24 21:58:48
  • OfStack

ASP. NET Core is a new open source, cross-platform framework that can be used to build modern cloud applications based on network connectivity, such as Web applications, IoT (Internet Of Things, Internet of Things) applications and mobile backends. ASP. NET Core can run on top of. NET Core or the complete. NET Framework. Its architecture provides an optimal development framework for applications published to the cloud or run locally. It is composed of modular components with low overhead, which keeps you flexible in constructing solutions. You can develop and run your ASP. NET Core applications across platforms on Windows, Mac, and Linux devices. The source code for ASP. NET Core is hosted on GitHub.

Asp. net Core History

ASP. NET has been used to develop web applications for many years.

The. net framework has undergone an evolutionary process since then, bringing us to the most recent ASP. Net Core 1.0.

ASP. NET Core is not a continuation of ASP. NET 4.6. This is a brand new framework It actually overrides the existing ASP. NET 4.6 framework, but is much smaller and more modular. Some people think that many things are the same, but this is not entirely true. ASP. NET Core has undergone many fundamental changes from Asp. net, which we will pay attention to in subsequent courses.

What is Asp. Net Core

ASP. NET Core 1.0 is an open source cross-platform development framework for building modern Web applications based on the cloud. It is rebuilt from the bottom to provide a high-performance Web application development framework, which can be deployed on the cloud or local servers. In addition, it makes ASP. NET application more streamlined and modular (you can add other modules according to your application needs), cross-platform (you can easily develop and deploy your application on Windows, Mac or Linux), and cloud optimization (you can deploy and debug your application on the cloud).

asp. net core Features:

Cross-platform

Can run on Windows, macOS, Linux

Flexible deployment mechanism

1. Portable applications (portable application)

This deployment mechanism is similar to the traditional. NET Framework, as long as. NET Core Runtime exists on the target platform.

2. Self-contained application (from host application)

As the name implies, this deployment mechanism packages the application and runtime together, and even if it is not installed on the target platform, NET Core Runtime can be used normally.

The second mode is different from. NET Native, and still uses CoreCLR, while. NET Native uses CoreRT as the runtime. See dotnet/corert for details.

Command line tools

All the running scripts of the NET program can be executed with command-line tools (cmd, bash). Here are a few common donnet commands

Asp. Net Advantages of Core

ASP. NET Core has the following advantages:

ASP. NET Core has many changes from previous releases that make it a more flexible and modular framework. ASP. NET Core is no longer based on System. Web. dll, it is based on a set of packets decomposed in NuGet. This allows you to determine whether to refer to the corresponding Nuget package according to your actual needs, which can optimize your application. Benefits of smaller surface applications include greater security, less maintenance, improved performance, and lower costs

Using ASP. NET Core development programs, you can get the following improvements:

Build and run cross-platform Asp. Net Core applications on Windows, Mac, and Linux. Applications based on. NET Core support true application versioning. New development tools make it easier to develop. web UI and web api both have a simple web stack. Configuration related to cloud computing environment. Built-in support for dependency injection. Tag Assistant makes Razor tag and HTML tag more natural. It can be deployed in IIS or in a custom hosting environment.

Related articles: