search
HomeBackend DevelopmentC#.Net TutorialAsp.Net--detailed explanation of Core installation and introduction

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:

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. 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 installing jdk)

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. After configuring the location of the project file, click OK, select the template, and the authentication method, as shown in the figure below:

The above is the detailed content of Asp.Net--detailed explanation of Core installation and introduction. For more information, please follow other related articles on the PHP Chinese website!

Statement
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
C# .NET: Building Applications with the .NET EcosystemC# .NET: Building Applications with the .NET EcosystemApr 27, 2025 am 12:12 AM

How to build applications using .NET? Building applications using .NET can be achieved through the following steps: 1) Understand the basics of .NET, including C# language and cross-platform development support; 2) Learn core concepts such as components and working principles of the .NET ecosystem; 3) Master basic and advanced usage, from simple console applications to complex WebAPIs and database operations; 4) Be familiar with common errors and debugging techniques, such as configuration and database connection issues; 5) Application performance optimization and best practices, such as asynchronous programming and caching.

C# as a Versatile .NET Language: Applications and ExamplesC# as a Versatile .NET Language: Applications and ExamplesApr 26, 2025 am 12:26 AM

C# is widely used in enterprise-level applications, game development, mobile applications and web development. 1) In enterprise-level applications, C# is often used for ASP.NETCore to develop WebAPI. 2) In game development, C# is combined with the Unity engine to realize role control and other functions. 3) C# supports polymorphism and asynchronous programming to improve code flexibility and application performance.

C# .NET for Web, Desktop, and Mobile DevelopmentC# .NET for Web, Desktop, and Mobile DevelopmentApr 25, 2025 am 12:01 AM

C# and .NET are suitable for web, desktop and mobile development. 1) In web development, ASP.NETCore supports cross-platform development. 2) Desktop development uses WPF and WinForms, which are suitable for different needs. 3) Mobile development realizes cross-platform applications through Xamarin.

C# .NET Ecosystem: Frameworks, Libraries, and ToolsC# .NET Ecosystem: Frameworks, Libraries, and ToolsApr 24, 2025 am 12:02 AM

The C#.NET ecosystem provides rich frameworks and libraries to help developers build applications efficiently. 1.ASP.NETCore is used to build high-performance web applications, 2.EntityFrameworkCore is used for database operations. By understanding the use and best practices of these tools, developers can improve the quality and performance of their applications.

Deploying C# .NET Applications to Azure/AWS: A Step-by-Step GuideDeploying C# .NET Applications to Azure/AWS: A Step-by-Step GuideApr 23, 2025 am 12:06 AM

How to deploy a C# .NET app to Azure or AWS? The answer is to use AzureAppService and AWSElasticBeanstalk. 1. On Azure, automate deployment using AzureAppService and AzurePipelines. 2. On AWS, use Amazon ElasticBeanstalk and AWSLambda to implement deployment and serverless compute.

C# .NET: An Introduction to the Powerful Programming LanguageC# .NET: An Introduction to the Powerful Programming LanguageApr 22, 2025 am 12:04 AM

The combination of C# and .NET provides developers with a powerful programming environment. 1) C# supports polymorphism and asynchronous programming, 2) .NET provides cross-platform capabilities and concurrent processing mechanisms, which makes them widely used in desktop, web and mobile application development.

.NET Framework vs. C#: Decoding the Terminology.NET Framework vs. C#: Decoding the TerminologyApr 21, 2025 am 12:05 AM

.NETFramework is a software framework, and C# is a programming language. 1..NETFramework provides libraries and services, supporting desktop, web and mobile application development. 2.C# is designed for .NETFramework and supports modern programming functions. 3..NETFramework manages code execution through CLR, and the C# code is compiled into IL and runs by CLR. 4. Use .NETFramework to quickly develop applications, and C# provides advanced functions such as LINQ. 5. Common errors include type conversion and asynchronous programming deadlocks. VisualStudio tools are required for debugging.

Demystifying C# .NET: An Overview for BeginnersDemystifying C# .NET: An Overview for BeginnersApr 20, 2025 am 12:11 AM

C# is a modern, object-oriented programming language developed by Microsoft, and .NET is a development framework provided by Microsoft. C# combines the performance of C and the simplicity of Java, and is suitable for building various applications. The .NET framework supports multiple languages, provides garbage collection mechanisms, and simplifies memory management.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!