ASP. Net core introduction and installation tutorial

Time:2021-8-28

Introduction to ASP. Net core

Asp.net core is a new open source and cross platform framework, which can be used to build modern Cloud Applications Based on network connection, such as web applications, IOT (Internet of things) applications and mobile backend. Asp.net core can run on the. Net core or the complete. Net framework. Its architecture provides an optimal development framework for applications published to the cloud or running locally. It is composed of modular components with little overhead, which maintains the flexibility of constructing solutions. You can develop and run your asp.net core applications on windows, MAC, Linux and other devices across platforms

Asp.net core history

The first asp.net preview was released as part of the. Net framework in 2000. Over the past 15 years, net finally ushered in its first cross platform version asp.net core in 2016. It should be stated that asp.net core is not a continuation of asp.net 4.6. This is a new framework. It rewrites the existing asp.net 4.6 framework, but it is much smaller and more modular. It has substantial changes from the previous version. Specific changes will be described in detail later

ASP. Net core features

Cross platform

It can run on windows, MacOS and Linux

Flexible deployment mechanism

1. Portable applications

This deployment mechanism is similar to the traditional. Net framework, as long as the. Net core runtime exists on the target platform.

2. Self contained application

As the name suggests, this deployment mechanism packages the application and runtime together, and can be used normally even if the. Net core runtime is not installed on the target platform.

The second method is also different from. Net native. It still uses coreclr, while. Net native uses corert as the runtime. See dotnet / corert for details.

Command line tools

All running scripts of. Net programs can be executed with command-line tools (CMD, bash). Here are several common donnet commands

Cloud optimization

You can deploy and debug your applications on the cloud

modularization

You can add other modules according to your application needs

Advantages of ASP. Net core

Asp.net core has the following advantages:

Compared with the previous version, asp.net core has many changes, which makes 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 packages decomposed in nuget. This allows you to determine whether to reference the corresponding nuget package according to your actual needs, which can optimize your application. The benefits of applications with smaller surface areas include greater security, less maintenance, improved performance, and lower costs

Using 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. The application based on. Net core supports real application version control. New development tools make development easier. Build Web UI and web API in a unified solution. Cloud computing environment based configuration system. Built in support for dependency injection. Tag assistant makes razor tags and HTML tags more natural. It can be deployed in IIS or customized hosting environment. Integrating modern client development framework and workflow, a new, lightweight and modular HTTP request pipeline is a set of new tools to simplify modern web development, open source code and community, and focus on developing and running asp.net application asp.net core on windows, MAC, Linux and other devices

1. Download address:

.NET Core 2.0 Preview 1:

https://www.microsoft.com/net/core/preview

.NET Core 1.0 and 1.1:

https://www.microsoft.com/net/download/core

Note:

1.1, 2.0 vs 2017

1.2. All my cases are implemented under 1.0, and there will be an introduction to the new features of 2.0

2. After downloading, click Install directly

3. CMD view Version (do you feel like installing JDK)

4. Look at the changes in vs2015

Note: first, make sure that visual studio 2015 Update3 is installed on your computer. Of course, we can also install visual studio community 2015 to replace the paid version of visual studio 2015

5. After configuring the location of the project file, click OK and select the template and authentication method, as shown in the following figure:

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support developpaer.