Home > Backend Development > C#.Net Tutorial > How to install Asp.Net Core? Detailed explanation of Asp.Net Core installation example tutorial

How to install Asp.Net Core? Detailed explanation of Asp.Net Core installation example tutorial

零下一度
Release: 2017-06-15 13:37:56
Original
2200 people have browsed it

This article mainly introduces the introduction and installation tutorial of Asp.Net Core in detail, which has certain reference value. Interested friends can refer to

Asp.Net Core Introduction

ASP.NET Core is a new open source, cross-platform framework that can be used to build modern cloud applications based on network connections, such as: Web applications, IoT (Internet of Things, Internet of Things) ) applications and mobile backends, etc. ASP.NET Core can run on .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 very little overhead. This preserves your flexibility in constructing solutions. You can develop and run your ASP.NET Core applications cross-platform on devices such as Windows, Mac and Linux

Asp.net Core History

First ASP.NET Preview was released as part of the .NET Framework in 2000. After 15 years, net finally ushered in its first cross-platform version ASP.NET Core in 2016. A statement should be made: ASP.NET Core is not a continuation of ASP.NET 4.6. This is a completely new framework that rewrites the existing ASP.NET 4.6 framework, but is much smaller and more modular, and it has substantial changes from the previous version. Specific changes will be introduced in detail later

Asp.Net Core features

Cross-platform

##Yes Runs on Windows, macOS, Linux

Flexible deployment mechanism

1.Portable applications

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 (self-hosted application)

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

The second method is also different from .NET Native. It still uses CoreCLR, while .NET Native uses CoreRT as the runtime. For details, see dotnet/corert.

Command line tools

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

Cloud optimization

You can deploy and debug your application on the cloud

Modularization

You can add other modules to it according to your application needs

Advantages of Asp.Net Core

ASP.NET Core has the following advantages:

ASP.NET Core has many changes compared to previous versions, making 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 broken down in NuGet. This allows you to determine whether to reference the corresponding Nuget package based on actual needs, which can optimize your application. The benefits of applications with smaller surface area include greater security, less maintenance, improved performance, and lower costs. Using ASP.NET Core to develop applications, you can get the following improvements:

In Build and run cross-platform Asp.Net Core applications for Windows, Mac and Linux. .NET Core-based applications support true application version control. New development tools make development easier. Build Web UI and Web API in a unified solution. Configuration system based on cloud computing environment. Built-in support for dependency injection. Tag Helper makes Razor tags and HTML markup more natural. It can be deployed in IIS or in a customized hosting environment. Integrate modern client development frameworks and workflows New, lightweight, modular HTTP request pipeline A new set of tools to simplify modern web development Open source and community focus on developing and running ASP on devices including Windows, Mac and Linux .NET application Asp.Net Core environment installation

1. Download address:

.NET Core 2.0 Preview 1:

www.microsoft.com/net/core/ preview

.NET Core 1.0 and 1.1:

www.microsoft.com/net/download/core

Note:

1.1 and 2.0 require vs 2017

1.2. The cases I have done are all implemented under 1.0, and there will be an introduction to the new features of 2.0

2. Click to install directly after downloading

3.cmd View version (does it feel like jdk is installed)

4. Take a 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. Configure After locating the project file, click OK, select the template, and the authentication method, as shown below:

The above is the detailed content of How to install Asp.Net Core? Detailed explanation of Asp.Net Core installation example tutorial. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template