Introduction to ASP.
ASP. NET Core is a new open-source, cross-platform framework that can be used to build modern, web-based cloud applications, such as the Internet of Things, IoT applications, and mobile backend. The ASP. NET core can be run on either the, or the complete. NET Framework, and its architecture provides an optimal development framework for applications that are published to the cloud or run on-premises, consisting of a small, modular component that preserves your flexibility in structuring the solution. You can develop and run your ASP. NET Core applications across platforms on devices such as Windows, Macs, and Linux. The source code for ASP. NET Core is already hosted on GitHub.
ASP. NET Core History
Asp. NET has been used to develop Web applications for many years.
All along, the. NET Framework has undergone an evolutionary process that finally brings us to the nearest ASP. Core1.0.
ASP. NET Core is not a continuation of ASP. It's a whole new framework.
It actually rewrites the existing ASP. NET 4.6 framework, but is much smaller and more modular.
Some people think that many things are the same, but that is not entirely true. There have been a number of fundamental changes to ASP. NET core, which we will be aware of in subsequent courses.
What is ASP. NET Core
ASP. NET Core 1.0 is an open-source, cross-platform development framework for building modern cloud-based WEB applications. It is rebuilt from the bottom up to provide a well-performing web application development framework that can be deployed on the cloud or on a local server. In addition, it makes ASP. NET applications more streamlined and modular (you can add other modules to it depending on 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 app on the cloud on the cloud).
ASP. NET Core Features:
Cross-platform
Can be run on Windows,macos,linux
A flexible deployment mechanism
1.Portable Applications (Portable application)
This deployment mechanism is similar to the traditional. NET Framework, as long as there is a. NET Core runtime on the target platform.
2.self-contained Application (self-hosted application)
As the name implies, this deployment mechanism packages the application and runtime together, even if the. NET Core Runtime is not installed on the target platform.
The second approach is not the same as. NET native, still using CORECLR, while. NET native uses Corert as the runtime, see Dotnet/corert for more information.
Command-line tools
. NET program all run scripts can be executed with command-line tools (Cmd,bash) Here are a few common donnet commands
Benefits of ASP. NET Core
ASP. NET core has the following advantages:
There are many changes to the ASP. NET core, which makes it a more flexible and modular framework than the previous version.
ASP. NET core is no longer based on System.Web.dll, it is based on a set of packages that are decomposed in nuget.
This allows you to optimize your application by judging whether or not to reference the appropriate NuGet package, depending on your actual needs.
Benefits of smaller surface area applications include greater security, less maintenance, improved performance, lower costs
Using the ASP. NET Core Development program, you can get the following improvements:
Build and run cross-platform ASP. NET core applications on Windows, Mac, and Linux.
. NET Core-based apps that support true application versioning.
New development tools make it easier to develop.
Both the Web UI and the Web API have a simple, consistent web stack.
Configurations related to cloud computing environments.
Built-in support for dependency injection.
The label helper makes razor tags and HTML tags more natural.
Can be deployed in IIS, and can be deployed in a custom hosting environment.