Introduction

In this article, I will explain the new features in Asp.Net Core 7.0 and how to create a simple ASP.NET Core 7.0 Web application and run it.

ASP .NET Core 7.0 version was released on November 08, 2022. Visual Studio 2022 version 17.4.0 is required to develop ASP.Net Core 7.0 web application. The latest version of Asp.Net Core is Asp .Net Core 7.0.

Here are some great new features and improvements in ASP.NET Core 7:

To get more details about ASP.NET Core 7.0, Click here.

Please read my previous articles using the below links.

Prerequisites

  1. Install Visual Studio 2022 updated to version 17.4.0
  2. Install .NET SDK 7.0

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 and Visual Studio Installer.

What’s New Features In ASP.NET Core 7.0

Step 3

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

What’s New Features In ASP.NET Core 7.0

What’s New Features In ASP.NET Core 7.0

Creating Your First Project

Click on; create a new Project to create a new project.

What’s New Features In ASP.NET Core 7.0

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

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

What’s New Features In ASP.NET Core 7.0

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

What’s New Features In ASP.NET Core 7.0

Now, Select framework .NET 7.0(Standard Term Support). You can select the Authentication Type as None, Individual Account, Microsoft Identity platform, or windows. For the demo purpose, I am selecting none. You can select this option based on your project need and Authentication requirement. You can select Configure for HTTPS based on your need. If you need Docker in your project, then Select Enable Docker.

Uncheck. Do not use top-level statements.

Then click the create button.

What’s New Features In ASP.NET Core 7.0

Asp.Net Core 7.0 Web application was created, and the project structure is shown below,

What’s New Features In ASP.NET Core 7.0

The program.cs file looks like the one below.

What’s New Features In ASP.NET Core 7.0

The Project.cspoj file looks like the one below. Where you can see the target Framework net7.0, by default Nullanle and ImplicitUsings are enabled.

What’s New Features In ASP.NET Core 7.0

Now, build and Press Ctrl+F5 to run without the debugger. I have made some minor changes to the Index.cshtml pages.

Visual Studio displays the following dialog,

What’s New Features In ASP.NET Core 7.0

Select Yes if you trust the IIS Express SSL certificate.

Again, The following dialog is displayed,

What’s New Features In ASP.NET Core 7.0

Select Yes if you agree to trust the development certificate.

Output

What’s New Features In ASP.NET Core 7.0

Conclusion

In this article, we explained what’s new features in Asp.NET Core 7.0. We also created a simple “AspDotNetCore7Demo” Asp.Net Core 7.0 web application and run.