Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Asp.Net Core

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces how to install Asp.Net Core, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

Introduction to Asp.Net Core

ASP.NET Core is a new open source, cross-platform framework, which can be used to build modern cloud applications based on network connectivity, such as Web applications, IoT (Internet Of Things) applications and mobile backend. ASP.NET Core can run on the .NET Core or the full .NET Framework, and its architecture provides an optimal development framework for applications released to the cloud or running locally, made up of modular components with little overhead, which keeps you flexible in building solutions. You can develop and run your ASP.NET Core applications across platforms on devices such as Windows, Mac and Linux.

History of Asp.net Core

The first preview of ASP.NET was released as part of the .NET Framework in 2000. After 15 years, net finally ushered in its first cross-platform version of ASP.NET Core in 2016. To be clear: 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 it is much smaller and more modular, with substantial changes from previous versions. The specific changes will be described in detail.

Characteristics of Asp.Net Core

Cross platform

Can be run on Windows,macOS,Linux

Flexible deployment mechanism

1.Portable applications (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 (self-hosting 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 also different from the .NET Native, which still uses CoreCLR, while the .NET Native uses CoreRT as the runtime, see dotnet/corert for details.

Command line tool

All running scripts of .NET programs can be executed using command line tools (cmd,bash). Here are several 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 decomposed in NuGet. This allows you to determine whether or not to reference the appropriate Nuget package based on your actual needs, and you can optimize your application. The benefits of applications with smaller surface area include greater security, less maintenance, improved performance, and lower cost

With 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. Based on .NET Core applications, support for real application version control. New development tools make it easier to develop. Build Web UI and Web API in a unified scheme. A configuration system based on a cloud computing environment. Built-in support for dependency injection. The tag assistant makes Razor tags and HTML tags more natural. It can be deployed in IIS or in a custom hosting environment. Integrate the modern client development framework and the new, lightweight, modular HTTP request pipeline of workflow, a new set of tools to simplify the modern Web development open source code and community focus on Windows, Mac and Linux devices to develop and run ASP.NET application Asp.Net Core environment installation

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 requires vs 2017

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

two。 Click install directly after download

Check the version of 3.cmd (does it feel like installing jdk)

4. Look at the changes on vs2015

Note: first of all, make sure to install Visual Studio 2015 Update3 on your computer, of course, we can also install Visual Studio Community 2015 instead of the paid version of Visual Studio 2015.

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

Thank you for reading this article carefully. I hope the article "how to install Asp.Net Core" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report