Since we will be starting from scratch with our discussion, let’s create a new ASP.NET Core Empty Application. Click the Create a new project tab in Visual Studio 2022, as indicated in the image below, to start a new Empty ASP.NET Core Web Application. The Create a new project window will open when you select…