Introduction

In this article, I am going to explain Asp.Net Core 6.0, Asp.net Core’s features and benefits, Asp.Net Core Versions, and why to use Asp.net Core. The latest version of Asp.Net Core is Asp .Net Core 6.0. It was released on November 8, 2021.

What is Asp.Net Core?

ASP.NET Core is a new version of ASP.NET, developed by Microsoft. It is an open-source framework for developing web applications and it can be run on Windows, Mac, or Linux. ASP.NET Core application can run on both .NET CORE and traditional .NET Framework (.NET framework 4.x). It has been completely rewritten from scratch and it was initially launched as Asp.Net 5 but then was renamed to ASP.NET CORE 1.0.

Asp.Net Core is a cross platform, high-performance, open-source framework for building modern, cloud-based, internet-connected applications.

Read my previous articles, using the below links.

What’s New in ASP.NET Core 6.0?

ASP .NET Core 6.0 version was released on November 08, 2021. Visual studio 2022 version 17.0 required for develop ASP.Net Core 6.0 web application.

Features

The transport layer to the app is called request and the application layer to the transport is called response.

Web app template improvements

  1. Now, Startup.cs and Program.cs into a single Program.cs file.
  2. Reduces the number of files and lines of code required to create an app.
  3. Use top-level statements to minimize the code required for an app.
  4. Uses global using directives to eliminate or minimize the number of using statement lines required.
  5. Use the new minimal hosting model.

Blazor improvements

  1. Render components from JavaScript.
  2. Preserve prerendered state.
  3. Error boundaries.
  4. Custom event args.
  5. Infer generic type parameters from ancestor components.
  6. Required component parameters.
  7. Handle query string parameters.
  8. Control HTML head content.
  9. JavaScript Initializers.
  10. Dynamically render components.

To get more detailed about Asp.Net Core 6.0 Click here.

Prerequisites

  1. Install Visual Studio 2022 updated version 17.0
  2. Install .NET SDK 6.0

ASP.NET Core Versions

Getting Started With ASP.NET Core 6.0

The below table show the details of Asp.Net Core Versions.History of ASP.NET Core Versions:

Version Release Date Development/Editor Tool Support
Asp.Net Core 1.0 Jun-27-2016 Visual Studio 2015 updated version 3 1.0
Asp.Net Core 1.1 Nov-18-2016 Visual Studio 2015,2017 1.0,1.1
Asp.Net Core 2.0 Aug-14-2017 Visual Studio 2017 Version 15.3 1.0,1.1,2.0
Asp.Net Core 2.1 (Long Term Support) May-30-2018 Visual Studio 2017 Version 15.7 1.0,1.1,2.0,2.1
Asp.Net Core 2.2 Dec-04-2018 Visual Studio 2017 Version15.9 1.0,1.1,2.0,2.1,2.2
Asp.Net Core 3.0 Sep-04-2019 Visual Studio 2019 Version 16.3 1.0,1.1,2.0,2.1,2.2,3.0
Asp.Net Core 3.1 (Long-Term Support) Dec-03-2019 Visual Studio 2019 Version 16.4 1.0,1.1,2.0,2.1,2.2,3.0,3.1
Asp.Net Core 5.0 Nov-10-2020 Visual Studio 2019 Version 16.8 or later 1.0,1.1,2.0,2.1,2.2,3.0,3.1,5.0
Asp.Net Core 6.0(Long-Term Support) Nov-08-2021 Visual Studio 2022 Version 17.0 6.0


Why Use Asp.Net Core?

Connect To Visual Studio 2022 Community Edition and Create Your First Project

Step 1

First, install Visual Studio 2022 in your system.

Step 2

Go to all programs in your systems, we can see Visual Studio 2022 current and Visual Studio Installer.

Connect To Visual Studio 2022 Community Edition and Create Your First Project

Step 3

Double-click on Visual Studio 2022 Current and it will open. It looks like the below screenshot. Opening it the first time it will take few time.

Connect To Visual Studio 2022 Community Edition and Create Your First Project

Connect To Visual Studio 2022 Community Edition and Create Your First Project

Creating Your First Project

Click on, Create a new Project to create a new project.

Connect To Visual Studio 2022 Community Edition and Create Your First Project

You can see various project types there. Choose “Asp.Net Core Web Application” project type for now.

Select Asp.Net Core MVC Application, and then click Next.

Connect To Visual Studio 2022 Community Edition and Create Your First Project

Give a valid name to your project and select a path for it. Then click Next button.

Connect To Visual Studio 2022 Community Edition and Create Your First Project

Now, choose framework .NET 6.0.Then click the create button.

Connect To Visual Studio 2022 Community Edition and Create Your First Project

Asp.Net Core 6.0 application created and project structure is shown below,

Connect To Visual Studio 2022 Community Edition and Create Your First Project

Now, build and run the application. I have made some minor changes in the view pages.

Output

Connect To Visual Studio 2022 Community Edition and Create Your First Project

Conclusion

In this article, we explained the basics of ASP.NET core 6.0 and what’s new in Asp.NET Core 6.0.